summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/mutex.h
diff options
context:
space:
mode:
authorGravatar bunnei2015-02-09 22:06:09 -0500
committerGravatar bunnei2015-02-09 22:06:09 -0500
commit1b0bf00cbcadfc4cca0a3d16efac8b85a4bd71e5 (patch)
treecf72fdea8a5f5e40c0ee07a8b7d705966a19a58a /src/core/hle/kernel/mutex.h
parentWaitSynch: Always reschedule (verified behavior on hw). (diff)
downloadyuzu-1b0bf00cbcadfc4cca0a3d16efac8b85a4bd71e5.tar.gz
yuzu-1b0bf00cbcadfc4cca0a3d16efac8b85a4bd71e5.tar.xz
yuzu-1b0bf00cbcadfc4cca0a3d16efac8b85a4bd71e5.zip
Mutex: Locks should be recursive.
Diffstat (limited to 'src/core/hle/kernel/mutex.h')
-rw-r--r--src/core/hle/kernel/mutex.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/mutex.h b/src/core/hle/kernel/mutex.h
index 548403614..d6d5328be 100644
--- a/src/core/hle/kernel/mutex.h
+++ b/src/core/hle/kernel/mutex.h
@@ -30,8 +30,7 @@ public:
30 static const HandleType HANDLE_TYPE = HandleType::Mutex; 30 static const HandleType HANDLE_TYPE = HandleType::Mutex;
31 HandleType GetHandleType() const override { return HANDLE_TYPE; } 31 HandleType GetHandleType() const override { return HANDLE_TYPE; }
32 32
33 bool initial_locked; ///< Initial lock state when mutex was created 33 int lock_count; ///< Number of times the mutex has been acquired
34 bool locked; ///< Current locked state
35 std::string name; ///< Name of mutex (optional) 34 std::string name; ///< Name of mutex (optional)
36 SharedPtr<Thread> holding_thread; ///< Thread that has acquired the mutex 35 SharedPtr<Thread> holding_thread; ///< Thread that has acquired the mutex
37 36