mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-06 03:12:15 +02:00
c11-threads: use KERNELRESULT
This commit is contained in:
parent
d26cdee0e9
commit
eac43e655a
@ -114,9 +114,8 @@ static int __cnd_timedwait(cnd_t *__restrict cond, mtx_t *__restrict mtx, u64 ti
|
||||
mtx->rmutex.counter = 1;
|
||||
}
|
||||
|
||||
if (rc == 0xEA01) {
|
||||
if (R_VALUE(rc) == KERNELRESULT(TimedOut))
|
||||
return thrd_timedout;
|
||||
}
|
||||
|
||||
return R_SUCCEEDED(rc) ? thrd_success : thrd_error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user