winbase
This commit is contained in:
+5
-2
@@ -1,5 +1,4 @@
|
|||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "os.h"
|
|
||||||
#include <userenv.h>
|
#include <userenv.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -342,6 +341,7 @@ i32 osLanIPAddress() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool osThreadJoin(Thread handle, u64 endt_us) {
|
bool osThreadJoin(Thread handle, u64 endt_us) {
|
||||||
|
/*
|
||||||
DWORD sleep_ms = os_w32_sleep_ms_from_endt_us(endt_us);
|
DWORD sleep_ms = os_w32_sleep_ms_from_endt_us(endt_us);
|
||||||
OS_W32_Entity *entity = (OS_W32_Entity *)PtrFromInt(handle.u64[0]);
|
OS_W32_Entity *entity = (OS_W32_Entity *)PtrFromInt(handle.u64[0]);
|
||||||
DWORD wait_result = WAIT_OBJECT_0;
|
DWORD wait_result = WAIT_OBJECT_0;
|
||||||
@@ -352,6 +352,9 @@ bool osThreadJoin(Thread handle, u64 endt_us) {
|
|||||||
os_w32_entity_release(entity);
|
os_w32_entity_release(entity);
|
||||||
}
|
}
|
||||||
return (wait_result == WAIT_OBJECT_0);
|
return (wait_result == WAIT_OBJECT_0);
|
||||||
|
*/
|
||||||
|
assert(false && "not implemented");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn HumanTime osHumanTimeFromMicroseconds(u64 micros) {
|
fn HumanTime osHumanTimeFromMicroseconds(u64 micros) {
|
||||||
@@ -362,7 +365,7 @@ fn HumanTime osHumanTimeFromMicroseconds(u64 micros) {
|
|||||||
result.year = 1900 + t.tm_year;
|
result.year = 1900 + t.tm_year;
|
||||||
result.month = t.tm_mon + 1;
|
result.month = t.tm_mon + 1;
|
||||||
result.month_i = t.tm_mon;
|
result.month_i = t.tm_mon;
|
||||||
result.date = t.tm_mday
|
result.date = t.tm_mday;
|
||||||
result.hour = t.tm_hour;
|
result.hour = t.tm_hour;
|
||||||
result.min = t.tm_min;
|
result.min = t.tm_min;
|
||||||
result.sec = t.tm_sec;
|
result.sec = t.tm_sec;
|
||||||
|
|||||||
Reference in New Issue
Block a user