summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-11-18 23:44:19 -0500
committerGravatar Zach Hilman2018-11-18 23:44:19 -0500
commit409dcf0e0aecfdb676fd3b64223a25e47c1b1c1a (patch)
treeccb9eae7c7e8b93760f3087fb6e67a13cbb24f2c /src/core/hle/kernel/thread.h
parentMerge pull request #1717 from FreddyFunk/swizzle-gob (diff)
downloadyuzu-409dcf0e0aecfdb676fd3b64223a25e47c1b1c1a.tar.gz
yuzu-409dcf0e0aecfdb676fd3b64223a25e47c1b1c1a.tar.xz
yuzu-409dcf0e0aecfdb676fd3b64223a25e47c1b1c1a.zip
svc: Implement yield types 0 and -1
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index d384d50db..e97434dd8 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -26,6 +26,7 @@ enum ThreadPriority : u32 {
26 THREADPRIO_USERLAND_MAX = 24, ///< Highest thread priority for userland apps 26 THREADPRIO_USERLAND_MAX = 24, ///< Highest thread priority for userland apps
27 THREADPRIO_DEFAULT = 44, ///< Default thread priority for userland apps 27 THREADPRIO_DEFAULT = 44, ///< Default thread priority for userland apps
28 THREADPRIO_LOWEST = 63, ///< Lowest thread priority 28 THREADPRIO_LOWEST = 63, ///< Lowest thread priority
29 THREADPRIO_COUNT = 64, ///< Total number of possible thread priorities.
29}; 30};
30 31
31enum ThreadProcessorId : s32 { 32enum ThreadProcessorId : s32 {
@@ -370,6 +371,10 @@ public:
370 return affinity_mask; 371 return affinity_mask;
371 } 372 }
372 373
374 void YieldNormal();
375 void YieldWithLoadBalancing();
376 void YieldAndWaitForLoadBalancing();
377
373private: 378private:
374 explicit Thread(KernelCore& kernel); 379 explicit Thread(KernelCore& kernel);
375 ~Thread() override; 380 ~Thread() override;