SCC: Small corrections to CancelSynchronization

This commit is contained in:
Fernando Sahmkow 2020-03-07 10:24:46 -04:00
parent 44cb9997b3
commit a66c61ca2d
3 changed files with 14 additions and 2 deletions

View file

@ -74,7 +74,9 @@ std::pair<ResultCode, Handle> Synchronization::WaitFor(
thread->SetSynchronizationObjects(&sync_objects);
thread->SetSynchronizationResults(nullptr, RESULT_TIMEOUT);
thread->SetStatus(ThreadStatus::WaitSynch);
thread->SetWaitingSync(true);
}
thread->SetWaitingSync(false);
if (event_handle != InvalidHandle) {
auto& time_manager = kernel.TimeManager();