mirror of
https://github.com/devkitPro/wut.git
synced 2026-08-20 17:45:34 -05:00
wutstdc++: Fix __wut_cond_timedwait
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user