mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-18 13:18:05 +01:00
Kernel/Arbiters: Implement WaitForAddress
This commit is contained in:
1 parent
6e9b11ffa0
commit
3119b64d86
5 files changed
+71
-6
No files matched your search
@@ -140,6 +140,11 @@ static void ThreadWakeupCallback(u64 thread_handle, int cycles_late) {
|
||||
}
|
||||
}
|
||||
|
||||
if (thread->arb_wait_address != 0) {
|
||||
ASSERT(thread->status == THREADSTATUS_WAIT_ARB);
|
||||
thread->arb_wait_address = 0;
|
||||
}
|
||||
|
||||
if (resume)
|
||||
thread->ResumeFromWait();
|
||||
}
|
||||
@@ -179,6 +184,7 @@ void Thread::ResumeFromWait() {
|
||||
case THREADSTATUS_WAIT_SLEEP:
|
||||
case THREADSTATUS_WAIT_IPC:
|
||||
case THREADSTATUS_WAIT_MUTEX:
|
||||
case THREADSTATUS_WAIT_ARB:
|
||||
break;
|
||||
|
||||
case THREADSTATUS_READY:
|
||||
|
||||
Reference in new issue
Block a user