Kernel: Corrections to Wait Objects clearing in which a thread could still be signalled after a timeout or a cancel.

This commit is contained in:
Fernando Sahmkow authored and FernandoS27 committed 2019-10-15 11:55:20 -04:00
1 parent 248795db6e
commit 3da21e4b4f
3 files changed
+4 -3

No files matched your search

+1
View File
@@ -133,6 +133,7 @@ void Thread::ResumeFromWait() {
void Thread::CancelWait() {
ASSERT(GetStatus() == ThreadStatus::WaitSynch);
ClearWaitObjects();
SetWaitSynchronizationResult(ERR_SYNCHRONIZATION_CANCELED);
ResumeFromWait();
}