diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-02-28 09:42:06 -0400 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 11:35:21 -0400 |
| commit | cd3d1798d835b4cf2c2f6e9ce356f81f93a6e93b (patch) | |
| tree | 119ae561120f78d70efd6e12297248a48ea28901 /src/core/hle/kernel/svc.cpp | |
| parent | 78eeea9f17b267422fd494ed9c9bcc03436be960 (diff) | |
General: Add Asserts
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index b535593c76..4c1040a3b9 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1657,6 +1657,7 @@ static void SignalProcessWideKey(Core::System& system, VAddr condition_variable_ update_val = thread->GetWaitHandle(); } } while (!monitor.ExclusiveWrite32(current_core, mutex_address, update_val)); + monitor.ClearExclusive(); if (mutex_val == 0) { // We were able to acquire the mutex, resume this thread. ASSERT(thread->GetStatus() == ThreadStatus::WaitCondVar); |
