aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/synchronization.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-07 10:24:46 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 11:35:33 -0400
commitc1f6b99653263834d32876fc261d98bb0a4caa33 (patch)
tree7ed933638efc1a292fd452fbb2935042be7ec5e3 /src/core/hle/kernel/synchronization.cpp
parente5454c36658ed63100c1df31d1e8a5ad39337341 (diff)
SCC: Small corrections to CancelSynchronization
Diffstat (limited to 'src/core/hle/kernel/synchronization.cpp')
-rw-r--r--src/core/hle/kernel/synchronization.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/synchronization.cpp b/src/core/hle/kernel/synchronization.cpp
index ac43a70946..a7e3fbe92f 100644
--- a/src/core/hle/kernel/synchronization.cpp
+++ b/src/core/hle/kernel/synchronization.cpp
@@ -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();