c11-threads: return thrd_timedout on cnd_timedwait timeout

This commit is contained in:
cpasjuste 2019-01-09 11:11:03 +01:00
parent 2e3fd9bd9f
commit d26cdee0e9

View File

@ -114,6 +114,10 @@ static int __cnd_timedwait(cnd_t *__restrict cond, mtx_t *__restrict mtx, u64 ti
mtx->rmutex.counter = 1;
}
if (rc == 0xEA01) {
return thrd_timedout;
}
return R_SUCCEEDED(rc) ? thrd_success : thrd_error;
}