improved sceKernelWaitEqueue
This commit is contained in:
parent
67c1772771
commit
0b8baedab7
|
@ -64,13 +64,17 @@ int PS4_SYSV_ABI sceKernelWaitEqueue(SceKernelEqueue eq, SceKernelEvent* ev, int
|
||||||
if (timo != nullptr) {
|
if (timo != nullptr) {
|
||||||
// Only events that have already arrived at the time of this function call can be received
|
// Only events that have already arrived at the time of this function call can be received
|
||||||
if (*timo == 0) {
|
if (*timo == 0) {
|
||||||
UNREACHABLE();
|
*out = eq->getTriggeredEvents(ev, num);
|
||||||
} else {
|
} else {
|
||||||
// Wait until an event arrives with timing out
|
// Wait until an event arrives with timing out
|
||||||
UNREACHABLE();
|
*out = eq->waitForEvents(ev, num, *timo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*out == 0) {
|
||||||
|
return ORBIS_KERNEL_ERROR_ETIMEDOUT;
|
||||||
|
}
|
||||||
|
|
||||||
return ORBIS_OK;
|
return ORBIS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue