This commit is contained in:
Tenari
2026-07-17 06:52:44 -05:00
parent bcdc4da34e
commit 94af399e58
+5 -2
View File
@@ -1,5 +1,4 @@
#include "string.h"
#include "os.h"
#include <userenv.h>
#include <stdio.h>
@@ -342,6 +341,7 @@ i32 osLanIPAddress() {
}
bool osThreadJoin(Thread handle, u64 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]);
DWORD wait_result = WAIT_OBJECT_0;
@@ -352,6 +352,9 @@ bool osThreadJoin(Thread handle, u64 endt_us) {
os_w32_entity_release(entity);
}
return (wait_result == WAIT_OBJECT_0);
*/
assert(false && "not implemented");
return true;
}
fn HumanTime osHumanTimeFromMicroseconds(u64 micros) {
@@ -362,7 +365,7 @@ fn HumanTime osHumanTimeFromMicroseconds(u64 micros) {
result.year = 1900 + t.tm_year;
result.month = t.tm_mon + 1;
result.month_i = t.tm_mon;
result.date = t.tm_mday
result.date = t.tm_mday;
result.hour = t.tm_hour;
result.min = t.tm_min;
result.sec = t.tm_sec;