Kernel: Correct Results in Condition Variables and Mutexes

This commit is contained in:
Fernando Sahmkow 2019-10-07 18:57:13 -04:00 committed by FernandoS27
parent 1ec1e81373
commit 44e09e5f21
3 changed files with 17 additions and 24 deletions

View file

@ -139,6 +139,7 @@ ResultCode Mutex::Release(VAddr address) {
thread->SetCondVarWaitAddress(0);
thread->SetMutexWaitAddress(0);
thread->SetWaitHandle(0);
thread->SetWaitSynchronizationResult(RESULT_SUCCESS);
system.PrepareReschedule();