summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2015-01-04 18:52:34 +0100
committerSubv <subv2112@gmail.com>2015-01-04 18:52:34 +0100
commitea80363cc28e169ef3fe65918435b95ba945cc36 (patch)
tree344927a3add5f1148cbb602c3461460b2c055336 /src
parentMerge pull request #403 from yuriks/shutdown-system (diff)
downloadyuzu-ea80363cc28e169ef3fe65918435b95ba945cc36.tar
yuzu-ea80363cc28e169ef3fe65918435b95ba945cc36.tar.gz
yuzu-ea80363cc28e169ef3fe65918435b95ba945cc36.tar.bz2
yuzu-ea80363cc28e169ef3fe65918435b95ba945cc36.tar.lz
yuzu-ea80363cc28e169ef3fe65918435b95ba945cc36.tar.xz
yuzu-ea80363cc28e169ef3fe65918435b95ba945cc36.tar.zst
yuzu-ea80363cc28e169ef3fe65918435b95ba945cc36.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/mutex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index 558068c79..3dfeffc9b 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -168,9 +168,9 @@ Handle CreateMutex(bool initial_locked, const std::string& name) {
ResultVal<bool> Mutex::WaitSynchronization() {
bool wait = locked;
if (locked) {
+ waiting_threads.push_back(GetCurrentThreadHandle());
Kernel::WaitCurrentThread(WAITTYPE_MUTEX, GetHandle());
- }
- else {
+ } else {
// Lock the mutex when the first thread accesses it
locked = true;
MutexAcquireLock(this);