diff options
| author | bunnei <bunneidev@gmail.com> | 2016-12-16 00:41:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-16 00:41:22 -0500 |
| commit | 034651fa7f9bced76278a1e397d3fb28956ec123 (patch) | |
| tree | c4090e3871e717ee4d0a2edd837feffc2c877cb0 /src/core/hle/kernel/kernel.h | |
| parent | 56fee7ed2944afd39b1eacf246fbae5d9034dc6f (diff) | |
| parent | 00decc1180d052efeeec94ee515e08fba46afa95 (diff) | |
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.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 0b811c5a7d..1adcf6c712 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -151,9 +151,15 @@ public: */ void RemoveWaitingThread(Thread* thread); - /// Wake up all threads waiting on this object + /** + * Wake up all threads waiting on this object that can be awoken, in priority order, + * and set the synchronization result and output of the thread. + */ void WakeupAllWaitingThreads(); + /// Obtains the highest priority thread that is ready to run from this object's waiting list. + SharedPtr<Thread> GetHighestPriorityReadyThread(); + /// Get a const reference to the waiting threads list for debug use const std::vector<SharedPtr<Thread>>& GetWaitingThreads() const; |
