diff options
| author | 2018-02-19 17:23:05 -0500 | |
|---|---|---|
| committer | 2018-02-19 17:23:05 -0500 | |
| commit | 23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9 (patch) | |
| tree | 48ce770db1df193eba107183d52f03543c81f355 /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #203 from Subv/ensure_save_data (diff) | |
| parent | scheduler: Cleanup based on PR feedback. (diff) | |
| download | yuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.tar.gz yuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.tar.xz yuzu-23fe6f5be33ecf329a95c6b0e5f7e4c75917cef9.zip | |
Merge pull request #202 from bunnei/scheduler-cleanup
Scheduler cleanup
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index bbffaf4cf..4fd2fc2f8 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -250,28 +250,6 @@ SharedPtr<Thread> SetupMainThread(VAddr entry_point, u32 priority, | |||
| 250 | SharedPtr<Process> owner_process); | 250 | SharedPtr<Process> owner_process); |
| 251 | 251 | ||
| 252 | /** | 252 | /** |
| 253 | * Returns whether there are any threads that are ready to run. | ||
| 254 | */ | ||
| 255 | bool HaveReadyThreads(); | ||
| 256 | |||
| 257 | /** | ||
| 258 | * Reschedules to the next available thread (call after current thread is suspended) | ||
| 259 | */ | ||
| 260 | void Reschedule(); | ||
| 261 | |||
| 262 | /** | ||
| 263 | * Arbitrate the highest priority thread that is waiting | ||
| 264 | * @param address The address for which waiting threads should be arbitrated | ||
| 265 | */ | ||
| 266 | Thread* ArbitrateHighestPriorityThread(VAddr address); | ||
| 267 | |||
| 268 | /** | ||
| 269 | * Arbitrate all threads currently waiting. | ||
| 270 | * @param address The address for which waiting threads should be arbitrated | ||
| 271 | */ | ||
| 272 | void ArbitrateAllThreads(VAddr address); | ||
| 273 | |||
| 274 | /** | ||
| 275 | * Gets the current thread | 253 | * Gets the current thread |
| 276 | */ | 254 | */ |
| 277 | Thread* GetCurrentThread(); | 255 | Thread* GetCurrentThread(); |
| @@ -302,9 +280,4 @@ void ThreadingInit(); | |||
| 302 | */ | 280 | */ |
| 303 | void ThreadingShutdown(); | 281 | void ThreadingShutdown(); |
| 304 | 282 | ||
| 305 | /** | ||
| 306 | * Get a const reference to the thread list for debug use | ||
| 307 | */ | ||
| 308 | const std::vector<SharedPtr<Thread>>& GetThreadList(); | ||
| 309 | |||
| 310 | } // namespace Kernel | 283 | } // namespace Kernel |