early-access version 2160

This commit is contained in:
pineappleEA
2021-10-25 16:18:43 +02:00
parent 6e75c4b219
commit a7deacc21a
8 changed files with 56 additions and 29 deletions

View File

@@ -49,6 +49,11 @@ public:
/// Gets the current running thread
[[nodiscard]] KThread* GetCurrentThread() const;
/// Gets the idle thread
[[nodiscard]] KThread* GetIdleThread() const {
return idle_thread;
}
/// Returns true if the scheduler is idle
[[nodiscard]] bool IsIdle() const {
return GetCurrentThread() == idle_thread;