summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-28 09:42:06 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:21 -0400
commit2a8837ff51a9cf5a0123489dba5f7ab48373c2d3 (patch)
tree119ae561120f78d70efd6e12297248a48ea28901 /src/core/hle/kernel/svc.cpp
parentGeneral: Add better safety for JIT use. (diff)
downloadyuzu-2a8837ff51a9cf5a0123489dba5f7ab48373c2d3.tar.gz
yuzu-2a8837ff51a9cf5a0123489dba5f7ab48373c2d3.tar.xz
yuzu-2a8837ff51a9cf5a0123489dba5f7ab48373c2d3.zip
General: Add Asserts
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index b535593c7..4c1040a3b 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_
1657 update_val = thread->GetWaitHandle(); 1657 update_val = thread->GetWaitHandle();
1658 } 1658 }
1659 } while (!monitor.ExclusiveWrite32(current_core, mutex_address, update_val)); 1659 } while (!monitor.ExclusiveWrite32(current_core, mutex_address, update_val));
1660 monitor.ClearExclusive();
1660 if (mutex_val == 0) { 1661 if (mutex_val == 0) {
1661 // We were able to acquire the mutex, resume this thread. 1662 // We were able to acquire the mutex, resume this thread.
1662 ASSERT(thread->GetStatus() == ThreadStatus::WaitCondVar); 1663 ASSERT(thread->GetStatus() == ThreadStatus::WaitCondVar);