aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel/k_scheduler.h
diff options
context:
space:
mode:
authorFernando Sahmkow <[email protected]>2021-10-16 11:54:09 +0200
committerFernando Sahmkow <[email protected]>2021-10-16 20:33:44 +0200
commitda6673e79acf26d728d347edc15c123d6c96a42f (patch)
treec2fd1dc9f2673bd7e279434f79fea2cdc5a64f70 /src/core/hle/kernel/k_scheduler.h
parent8b996015a88f954535cc8024196aec0fd4b0bc7b (diff)
downloadyuzu-mainline-da6673e79acf26d728d347edc15c123d6c96a42f.tar.gz
yuzu-mainline-da6673e79acf26d728d347edc15c123d6c96a42f.zip
SVC: Implement svcInfo:IdleTickCount
Used by the Witcher 3
Diffstat (limited to 'src/core/hle/kernel/k_scheduler.h')
-rw-r--r--src/core/hle/kernel/k_scheduler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_scheduler.h b/src/core/hle/kernel/k_scheduler.h
index c8ccc1ae4..7df288438 100644
--- a/src/core/hle/kernel/k_scheduler.h
+++ b/src/core/hle/kernel/k_scheduler.h
@@ -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;