summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.h
diff options
context:
space:
mode:
authorGravatar Lioncash2019-03-14 21:58:23 -0400
committerGravatar Lioncash2019-03-15 23:02:14 -0400
commitdb47d7e4716effb1021be3ebdc90763c3a53cafc (patch)
treefcdcf3d28b281aa6576badb61632ceb106e7b66a /src/core/hle/kernel/thread.h
parentkernel/thread: Make bracing consistent within UpdatePriority() (diff)
downloadyuzu-db47d7e4716effb1021be3ebdc90763c3a53cafc.tar.gz
yuzu-db47d7e4716effb1021be3ebdc90763c3a53cafc.tar.xz
yuzu-db47d7e4716effb1021be3ebdc90763c3a53cafc.zip
kernel/thread: Expand documentation of nominal_priority and current_priority
Aims to disambiguate why each priority instance exists a little bit. While we're at it, also add an explanatory comment to UpdatePriority().
Diffstat (limited to 'src/core/hle/kernel/thread.h')
-rw-r--r--src/core/hle/kernel/thread.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index c48b21aba..96d9982d8 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -398,8 +398,14 @@ private:
398 VAddr entry_point = 0; 398 VAddr entry_point = 0;
399 VAddr stack_top = 0; 399 VAddr stack_top = 0;
400 400
401 u32 nominal_priority = 0; ///< Nominal thread priority, as set by the emulated application 401 /// Nominal thread priority, as set by the emulated application.
402 u32 current_priority = 0; ///< Current thread priority, can be temporarily changed 402 /// The nominal priority is the thread priority without priority
403 /// inheritance taken into account.
404 u32 nominal_priority = 0;
405
406 /// Current thread priority. This may change over the course of the
407 /// thread's lifetime in order to facilitate priority inheritance.
408 u32 current_priority = 0;
403 409
404 u64 total_cpu_time_ticks = 0; ///< Total CPU running ticks. 410 u64 total_cpu_time_ticks = 0; ///< Total CPU running ticks.
405 u64 last_running_ticks = 0; ///< CPU tick when thread was last running 411 u64 last_running_ticks = 0; ///< CPU tick when thread was last running