diff options
| author | 2020-03-07 10:24:46 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:33 -0400 | |
| commit | a66c61ca2de61e3a46fa857cf8afea359b2fb8eb (patch) | |
| tree | 7ed933638efc1a292fd452fbb2935042be7ec5e3 /src/core/hle/kernel/synchronization.cpp | |
| parent | Scheduler: Correct locking for hle threads. (diff) | |
| download | yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.gz yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.tar.xz yuzu-a66c61ca2de61e3a46fa857cf8afea359b2fb8eb.zip | |
SCC: Small corrections to CancelSynchronization
Diffstat (limited to 'src/core/hle/kernel/synchronization.cpp')
| -rw-r--r-- | src/core/hle/kernel/synchronization.cpp | 2 |
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( | |||
| 74 | thread->SetSynchronizationObjects(&sync_objects); | 74 | thread->SetSynchronizationObjects(&sync_objects); |
| 75 | thread->SetSynchronizationResults(nullptr, RESULT_TIMEOUT); | 75 | thread->SetSynchronizationResults(nullptr, RESULT_TIMEOUT); |
| 76 | thread->SetStatus(ThreadStatus::WaitSynch); | 76 | thread->SetStatus(ThreadStatus::WaitSynch); |
| 77 | thread->SetWaitingSync(true); | ||
| 77 | } | 78 | } |
| 79 | thread->SetWaitingSync(false); | ||
| 78 | 80 | ||
| 79 | if (event_handle != InvalidHandle) { | 81 | if (event_handle != InvalidHandle) { |
| 80 | auto& time_manager = kernel.TimeManager(); | 82 | auto& time_manager = kernel.TimeManager(); |