summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.h
diff options
context:
space:
mode:
authorGravatar bunnei2016-12-16 00:41:22 -0500
committerGravatar GitHub2016-12-16 00:41:22 -0500
commitcda7210fade53a96fcba5fe5cd6dfd7b604f8277 (patch)
treec4090e3871e717ee4d0a2edd837feffc2c877cb0 /src/core/hle/kernel/kernel.h
parentMerge pull request #2316 from endrift/macos-gcc (diff)
parentFixed the codestyle to match our clang-format rules. (diff)
downloadyuzu-cda7210fade53a96fcba5fe5cd6dfd7b604f8277.tar.gz
yuzu-cda7210fade53a96fcba5fe5cd6dfd7b604f8277.tar.xz
yuzu-cda7210fade53a96fcba5fe5cd6dfd7b604f8277.zip
Merge pull request #2260 from Subv/scheduling
Threading: Reworked the way our scheduler works.
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
-rw-r--r--src/core/hle/kernel/kernel.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index 0b811c5a7..1adcf6c71 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -151,9 +151,15 @@ public:
151 */ 151 */
152 void RemoveWaitingThread(Thread* thread); 152 void RemoveWaitingThread(Thread* thread);
153 153
154 /// Wake up all threads waiting on this object 154 /**
155 * Wake up all threads waiting on this object that can be awoken, in priority order,
156 * and set the synchronization result and output of the thread.
157 */
155 void WakeupAllWaitingThreads(); 158 void WakeupAllWaitingThreads();
156 159
160 /// Obtains the highest priority thread that is ready to run from this object's waiting list.
161 SharedPtr<Thread> GetHighestPriorityReadyThread();
162
157 /// Get a const reference to the waiting threads list for debug use 163 /// Get a const reference to the waiting threads list for debug use
158 const std::vector<SharedPtr<Thread>>& GetWaitingThreads() const; 164 const std::vector<SharedPtr<Thread>>& GetWaitingThreads() const;
159 165