mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-11 19:20:09 +01:00
[orbis-kernel] do not report try wait busy as error
This commit is contained in:
parent
32a9febee4
commit
00a1849a0b
|
|
@ -257,6 +257,9 @@ orbis::SysResult orbis::sys_evf_trywait(Thread *thread, sint id,
|
|||
uwrite(pPatternSet, thread->evfResultPattern);
|
||||
}
|
||||
|
||||
if (result == ErrorCode::BUSY) {
|
||||
return SysResult::notAnError(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
orbis::SysResult orbis::sys_evf_set(Thread *thread, sint id, uint64_t value) {
|
||||
|
|
@ -417,7 +420,7 @@ orbis::SysResult orbis::sys_osem_trywait(Thread *thread, sint id, sint need) {
|
|||
|
||||
std::lock_guard lock(sem->mtx);
|
||||
if (sem->isDeleted || sem->value < need)
|
||||
return ErrorCode::BUSY;
|
||||
return orbis::SysResult::notAnError(ErrorCode::BUSY);
|
||||
sem->value -= need;
|
||||
return {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue