Fix posix NativeConditionVariable.wait_timeout. (#1211)

Fix posix NativeConditionVariable.wait_timeout. TimeSpec::ns may not exceed one second.
This commit is contained in:
Christian Buttner
2024-06-24 11:52:21 +02:00
committed by GitHub
parent 616bde2c4d
commit 83fe94d497
2 changed files with 4 additions and 3 deletions

View File

@@ -183,8 +183,8 @@ extern fn isz write(Fd fd, void* buffer, usz count) @if(!env::WIN32);
extern fn CFile fmemopen(void* ptr, usz size, ZString mode);
extern fn isz getline(char** linep, usz* linecapp, CFile stream);
extern fn int timespec_get(TimeSpec* ts, int base);
extern fn int nanosleep(TimeSpec* req, TimeSpec* remaining);
extern fn CInt timespec_get(TimeSpec* ts, CInt base);
extern fn CInt nanosleep(TimeSpec* req, TimeSpec* remaining);
extern fn ZString ctime(Time_t *timer);
extern fn Time_t time(Time_t *timer);