summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/mutex.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2017-01-01 22:59:30 +0100
committerSubv <subv2112@gmail.com>2017-01-04 21:58:46 +0100
commit7abf1853907fe086753df0031262b668a2da88b0 (patch)
tree033c38e1d98f209c32c1378419468212729877b4 /src/core/hle/kernel/mutex.h
parentKernel: Object ShouldWait and Acquire calls now take a thread as a parameter. (diff)
downloadyuzu-7abf1853907fe086753df0031262b668a2da88b0.tar
yuzu-7abf1853907fe086753df0031262b668a2da88b0.tar.gz
yuzu-7abf1853907fe086753df0031262b668a2da88b0.tar.bz2
yuzu-7abf1853907fe086753df0031262b668a2da88b0.tar.lz
yuzu-7abf1853907fe086753df0031262b668a2da88b0.tar.xz
yuzu-7abf1853907fe086753df0031262b668a2da88b0.tar.zst
yuzu-7abf1853907fe086753df0031262b668a2da88b0.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/mutex.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/hle/kernel/mutex.h b/src/core/hle/kernel/mutex.h
index 98b3d40b5..3e6adeb17 100644
--- a/src/core/hle/kernel/mutex.h
+++ b/src/core/hle/kernel/mutex.h
@@ -35,18 +35,15 @@ public:
}
int lock_count; ///< Number of times the mutex has been acquired
+ u32 priority; ///< The priority of the mutex, used for priority inheritance.
std::string name; ///< Name of mutex (optional)
SharedPtr<Thread> holding_thread; ///< Thread that has acquired the mutex
bool ShouldWait(Thread* thread) const override;
void Acquire(Thread* thread) override;
+ void AddWaitingThread(SharedPtr<Thread> thread) override;
- /**
- * Acquires the specified mutex for the specified thread
- * @param thread Thread that will acquire the mutex
- */
- void Acquire(SharedPtr<Thread> thread);
void Release();
private: