mirror of
https://github.com/devkitPro/wut.git
synced 2026-03-21 17:34:47 -05:00
wutstdc++: Fix __wut_cond_timedwait
This commit is contained in:
parent
b417b8fbd4
commit
575b8897e7
|
|
@ -1,4 +1,5 @@
|
|||
#include "wut_gthread.h"
|
||||
#include "../wutnewlib/wut_clock.h"
|
||||
|
||||
#include <sys/errno.h>
|
||||
#include <sys/time.h>
|
||||
|
|
@ -60,7 +61,7 @@ __wut_cond_timedwait(OSCondition *cond, OSMutex *mutex,
|
|||
|
||||
OSTime time = OSGetTime();
|
||||
OSTime timeout =
|
||||
OSSecondsToTicks(abs_timeout->tv_sec) +
|
||||
OSSecondsToTicks(abs_timeout->tv_sec - EPOCH_DIFF_SECS(WIIU_OSTIME_EPOCH_YEAR)) +
|
||||
OSNanosecondsToTicks(abs_timeout->tv_nsec);
|
||||
|
||||
// Already timed out!
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user