![]() |
MOS Source Code
|
#include <task_types.hpp>
Public Member Functions | |
~Thread () | |
Public Attributes | |
u32 | magic |
tid_t | tid |
mos::string | name |
Process * | owner |
as_linked_list | |
node in the process's thread list | |
thread_mode | mode |
user-mode thread or kernel-mode | |
spinlock_t | state_lock |
protects the thread state | |
thread_state_t | state |
thread state | |
downwards_stack_t | u_stack |
user-mode stack | |
downwards_stack_t | k_stack |
kernel-mode stack | |
platform_thread_options_t | platform_options |
platform-specific thread options | |
waitlist_t | waiters |
list of threads waiting for this thread to exit | |
thread_signal_info_t | signal_info |
Additional Inherited Members | |
![]() | |
static constexpr mos::string_view | type_name |
Definition at line 93 of file task_types.hpp.
~Thread | ( | ) |
Definition at line 32 of file thread.cpp.
u32 magic |
Definition at line 95 of file task_types.hpp.
tid_t tid |
Definition at line 96 of file task_types.hpp.
Referenced by thread_complete_init(), and thread_destroy().
mos::string name |
Definition at line 97 of file task_types.hpp.
Referenced by MOS_STATIC_ASSERT(), and MOS_STATIC_ASSERT().
Process* owner |
Definition at line 98 of file task_types.hpp.
Referenced by elf_setup_main_thread(), platform_context_setup_child_thread(), thread_destroy(), and x86_setup_thread_common().
as_linked_list |
node in the process's thread list
Definition at line 99 of file task_types.hpp.
thread_mode mode |
user-mode thread or kernel-mode
Definition at line 100 of file task_types.hpp.
Referenced by do_restore_fp_context(), do_save_fp_context(), platform_context_cleanup(), platform_context_clone(), platform_context_clone(), platform_context_setup_child_thread(), signal_send_to_thread(), thread_destroy(), x86_setup_thread_common(), x86_xrstor_thread(), and x86_xsave_thread().
spinlock_t state_lock |
protects the thread state
Definition at line 101 of file task_types.hpp.
Referenced by naive_sched_select_next(), process_destroy(), scheduler_wake_thread(), and thread_destroy().
thread_state_t state |
thread state
Definition at line 102 of file task_types.hpp.
Referenced by platform_dump_thread_kernel_stack(), scheduler_add_thread(), scheduler_wake_thread(), thread_destroy(), and waitlist_wake().
downwards_stack_t u_stack |
user-mode stack
Definition at line 103 of file task_types.hpp.
Referenced by elf_setup_main_thread(), platform_context_clone(), platform_context_clone(), platform_context_setup_child_thread(), thread_destroy(), and x86_setup_thread_common().
downwards_stack_t k_stack |
kernel-mode stack
Definition at line 104 of file task_types.hpp.
Referenced by platform_context_clone(), platform_context_clone(), platform_dump_thread_kernel_stack(), platform_switch_to_thread(), platform_thread_regs(), platform_thread_regs(), thread_destroy(), thread_setup_common(), and x86_setup_thread_common().
platform_thread_options_t platform_options |
platform-specific thread options
Definition at line 106 of file task_types.hpp.
Referenced by do_restore_fp_context(), do_save_fp_context(), platform_context_cleanup(), platform_context_clone(), x86_set_fsbase(), x86_setup_thread_common(), x86_xrstor_thread(), and x86_xsave_thread().
waitlist_t waiters |
list of threads waiting for this thread to exit
Definition at line 108 of file task_types.hpp.
thread_signal_info_t signal_info |
Definition at line 110 of file task_types.hpp.
Referenced by signal_send_to_thread().