summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/mutex.h
diff options
context:
space:
mode:
authorGravatar Subv2017-01-02 19:38:08 -0500
committerGravatar Subv2017-01-04 15:58:48 -0500
commitd3ff5b91e14356912589f9bac47fccbe79e07279 (patch)
treee35c698d40539e360981a61b38f8fbb60aee7418 /src/core/hle/kernel/mutex.h
parentKernel/Mutex: Update a mutex priority when a thread stops waiting on it. (diff)
downloadyuzu-d3ff5b91e14356912589f9bac47fccbe79e07279.tar.gz
yuzu-d3ff5b91e14356912589f9bac47fccbe79e07279.tar.xz
yuzu-d3ff5b91e14356912589f9bac47fccbe79e07279.zip
Kernel/Mutex: Propagate thread priority changes to other threads inheriting the priority via mutexes
Diffstat (limited to 'src/core/hle/kernel/mutex.h')
-rw-r--r--src/core/hle/kernel/mutex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/mutex.h b/src/core/hle/kernel/mutex.h
index 31f920516..c57adf400 100644
--- a/src/core/hle/kernel/mutex.h
+++ b/src/core/hle/kernel/mutex.h
@@ -39,6 +39,12 @@ public:
39 std::string name; ///< Name of mutex (optional) 39 std::string name; ///< Name of mutex (optional)
40 SharedPtr<Thread> holding_thread; ///< Thread that has acquired the mutex 40 SharedPtr<Thread> holding_thread; ///< Thread that has acquired the mutex
41 41
42 /**
43 * Elevate the mutex priority to the best priority
44 * among the priorities of all its waiting threads.
45 */
46 void UpdatePriority();
47
42 bool ShouldWait(Thread* thread) const override; 48 bool ShouldWait(Thread* thread) const override;
43 void Acquire(Thread* thread) override; 49 void Acquire(Thread* thread) override;
44 50