mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
c11-threads: return thrd_timedout on cnd_timedwait timeout (#232)
This commit is contained in:
parent
2e3fd9bd9f
commit
855a719728
@ -114,6 +114,9 @@ static int __cnd_timedwait(cnd_t *__restrict cond, mtx_t *__restrict mtx, u64 ti
|
|||||||
mtx->rmutex.counter = 1;
|
mtx->rmutex.counter = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (R_VALUE(rc) == KERNELRESULT(TimedOut))
|
||||||
|
return thrd_timedout;
|
||||||
|
|
||||||
return R_SUCCEEDED(rc) ? thrd_success : thrd_error;
|
return R_SUCCEEDED(rc) ? thrd_success : thrd_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user