aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel/mutex.h
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-02-09 22:06:09 -0500
committerGravatar bunnei <bunneidev@gmail.com>2015-02-09 22:06:09 -0500
commit1b0bf00cbcadfc4cca0a3d16efac8b85a4bd71e5 (patch)
treecf72fdea8a5f5e40c0ee07a8b7d705966a19a58a /src/core/hle/kernel/mutex.h
parentcaa58acc840efd6881e7816ad4fdb5d48c17e2e2 (diff)
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 54840361..d6d5328b 100644
--- a/src/core/hle/kernel/mutex.h
+++ b/src/core/hle/kernel/mutex.h
@@ -30,8 +30,7 @@ public:
static const HandleType HANDLE_TYPE = HandleType::Mutex;
HandleType GetHandleType() const override { return HANDLE_TYPE; }
- bool initial_locked; ///< Initial lock state when mutex was created
- bool locked; ///< Current locked state
+ int lock_count; ///< Number of times the mutex has been acquired
std::string name; ///< Name of mutex (optional)
SharedPtr<Thread> holding_thread; ///< Thread that has acquired the mutex