diff options
| author | 2020-03-09 10:51:05 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:43 -0400 | |
| commit | 8a78fc25802b8f69d073b703728a3501c98bf5e8 (patch) | |
| tree | f6e0bb356f808df054f45660de6ca86b21060912 /src/core/hle/kernel/synchronization.cpp | |
| parent | General: Initial Setup for Single Core. (diff) | |
| download | yuzu-8a78fc25802b8f69d073b703728a3501c98bf5e8.tar.gz yuzu-8a78fc25802b8f69d073b703728a3501c98bf5e8.tar.xz yuzu-8a78fc25802b8f69d073b703728a3501c98bf5e8.zip | |
Synchronization: Correct wide Assertion.
Diffstat (limited to 'src/core/hle/kernel/synchronization.cpp')
| -rw-r--r-- | src/core/hle/kernel/synchronization.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/synchronization.cpp b/src/core/hle/kernel/synchronization.cpp index 275bf11cc..851b702a5 100644 --- a/src/core/hle/kernel/synchronization.cpp +++ b/src/core/hle/kernel/synchronization.cpp | |||
| @@ -23,8 +23,10 @@ void Synchronization::SignalObject(SynchronizationObject& obj) const { | |||
| 23 | if (obj.IsSignaled()) { | 23 | if (obj.IsSignaled()) { |
| 24 | for (auto thread : obj.GetWaitingThreads()) { | 24 | for (auto thread : obj.GetWaitingThreads()) { |
| 25 | if (thread->GetSchedulingStatus() == ThreadSchedStatus::Paused) { | 25 | if (thread->GetSchedulingStatus() == ThreadSchedStatus::Paused) { |
| 26 | ASSERT(thread->GetStatus() == ThreadStatus::WaitSynch); | 26 | if (thread->GetStatus() != ThreadStatus::WaitHLEEvent) { |
| 27 | ASSERT(thread->IsWaitingSync()); | 27 | ASSERT(thread->GetStatus() == ThreadStatus::WaitSynch); |
| 28 | ASSERT(thread->IsWaitingSync()); | ||
| 29 | } | ||
| 28 | thread->SetSynchronizationResults(&obj, RESULT_SUCCESS); | 30 | thread->SetSynchronizationResults(&obj, RESULT_SUCCESS); |
| 29 | thread->ResumeFromWait(); | 31 | thread->ResumeFromWait(); |
| 30 | } | 32 | } |