mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 20:47:56 -05:00
SVC: WaitSynchronization add Termination Pending Result.
This commit is contained in:
@ -59,7 +59,10 @@ std::pair<ResultCode, Handle> Synchronization::WaitFor(
|
||||
return {RESULT_TIMEOUT, InvalidHandle};
|
||||
}
|
||||
|
||||
/// TODO(Blinkhawk): Check for termination pending
|
||||
if (thread->IsPendingTermination()) {
|
||||
lock.CancelSleep();
|
||||
return {ERR_THREAD_TERMINATING, InvalidHandle};
|
||||
}
|
||||
|
||||
if (thread->IsSyncCancelled()) {
|
||||
thread->SetSyncCancelled(false);
|
||||
|
Reference in New Issue
Block a user