summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-06-19 09:11:18 -0400
committerGravatar FernandoS272019-10-15 11:55:12 -0400
commit82218c925af8bcbaa05ae9f39af2d2393de7681f (patch)
treee38d90c4838679ae59d58f51fff2904b16b1a155 /src/core/hle/kernel/thread.h
parentCorrect PrepareReschedule (diff)
downloadyuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.gz
yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.tar.xz
yuzu-82218c925af8bcbaa05ae9f39af2d2393de7681f.zip
Kernel: Style and Corrections
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index c426a7209..bf0cae959 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -75,7 +75,12 @@ enum class ThreadActivity : u32 {
75 Paused = 1, 75 Paused = 1,
76}; 76};
77 77
78enum class ThreadSchedStatus : u32 { None = 0, Paused = 1, Runnable = 2, Exited = 3 }; 78enum class ThreadSchedStatus : u32 {
79 None = 0,
80 Paused = 1,
81 Runnable = 2,
82 Exited = 3,
83};
79 84
80enum ThreadSchedFlags : u32 { 85enum ThreadSchedFlags : u32 {
81 ProcessPauseFlag = 1 << 4, 86 ProcessPauseFlag = 1 << 4,
@@ -403,15 +408,15 @@ public:
403 void Sleep(s64 nanoseconds); 408 void Sleep(s64 nanoseconds);
404 409
405 /// Yields this thread without rebalancing loads. 410 /// Yields this thread without rebalancing loads.
406 void YieldType0(); 411 void YieldSimple();
407 412
408 /// Yields this thread and does a load rebalancing. 413 /// Yields this thread and does a load rebalancing.
409 void YieldType1(); 414 void YieldAndBalanceLoad();
410 415
411 /// Yields this thread and if the core is left idle, loads are rebalanced 416 /// Yields this thread and if the core is left idle, loads are rebalanced
412 void YieldType2(); 417 void YieldAndWaitForLoadBalancing();
413 418
414 ThreadSchedStatus GetSchedulingStatus() { 419 ThreadSchedStatus GetSchedulingStatus() const {
415 return static_cast<ThreadSchedStatus>(scheduling_state & ThreadSchedMasks::LowMask); 420 return static_cast<ThreadSchedStatus>(scheduling_state & ThreadSchedMasks::LowMask);
416 } 421 }
417 422