mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 22:20:59 +00:00
(GX/GEKKO/RTHREADS) scond_wait_timeout - correct Gekko codepath
This commit is contained in:
parent
8590dd6425
commit
1440196fa0
@ -855,7 +855,6 @@ bool scond_wait_timeout(scond_t *cond, slock_t *lock, int64_t timeout_us)
|
|||||||
_ftime64_s(&now);
|
_ftime64_s(&now);
|
||||||
#elif defined(GEKKO)
|
#elif defined(GEKKO)
|
||||||
/* Avoid gettimeofday due to it being reported to be broken */
|
/* Avoid gettimeofday due to it being reported to be broken */
|
||||||
struct timeval tm;
|
|
||||||
const uint64_t tickms = gettime() / TB_TIMER_CLOCK;
|
const uint64_t tickms = gettime() / TB_TIMER_CLOCK;
|
||||||
now.tv_sec = tickms / 1000;
|
now.tv_sec = tickms / 1000;
|
||||||
now.tv_nsec = tickms * 1000;
|
now.tv_nsec = tickms * 1000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user