![]() |
MOS Source Code
|
#include <task_types.hpp>
Public Member Functions | |
| ~Thread () | |
Static Public Member Functions | |
| static bool | IsValid (const Thread *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 |
Friends | |
| mos::SyslogStreamWriter | operator<< (mos::SyslogStreamWriter stream, const Thread *thread) |
Additional Inherited Members | |
| Static Public Attributes inherited from NamedType<"Thread"> | |
| static constexpr mos::string_view | type_name |
Definition at line 113 of file task_types.hpp.
| ~Thread | ( | ) |
Definition at line 32 of file thread.cpp.
Definition at line 134 of file task_types.hpp.
Referenced by operator<<, scheduler_add_thread(), scheduler_remove_thread(), thread_complete_init(), thread_destroy(), thread_exit(), thread_exit_locked(), thread_get(), and vsnprintf_do_pointer_kernel().
|
friend |
Definition at line 142 of file task_types.hpp.
| u32 magic |
Definition at line 115 of file task_types.hpp.
| tid_t tid |
Definition at line 116 of file task_types.hpp.
Referenced by operator<<, thread_complete_init(), and thread_destroy().
| mos::string name |
Definition at line 117 of file task_types.hpp.
Referenced by MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), and operator<<.
| Process* owner |
Definition at line 118 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 119 of file task_types.hpp.
| thread_mode mode |
user-mode thread or kernel-mode
Definition at line 120 of file task_types.hpp.
Referenced by do_restore_fp_context(), do_save_fp_context(), platform_context_cleanup(), 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 121 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 122 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 123 of file task_types.hpp.
Referenced by elf_setup_main_thread(), 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 124 of file task_types.hpp.
Referenced by platform_context_clone(), platform_dump_thread_kernel_stack(), platform_switch_to_thread(), 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 126 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 128 of file task_types.hpp.
| thread_signal_info_t signal_info |
Definition at line 130 of file task_types.hpp.
Referenced by signal_send_to_thread().