summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/synchronization.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-07 15:24:46 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:35:33 +0200
commita66c61ca2de61e3a46fa857cf8afea359b2fb8eb (patch)
tree7ed933638efc1a292fd452fbb2935042be7ec5e3 /src/core/hle/kernel/synchronization.cpp
parentScheduler: Correct locking for hle threads. (diff)
downloadyuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar
yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.gz
yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.bz2
yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.lz
yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.xz
yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.zst
yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.zip
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 ac43a7094..a7e3fbe92 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();