![]() |
MOS Source Code
|
Go to the source code of this file.
Functions | |
should_inline bool | thread_is_valid (const Thread *thread) |
Thread * | thread_allocate (Process *owner, thread_mode tflags) |
void | thread_destroy (Thread *thread) |
PtrResult< Thread > | thread_new (Process *owner, thread_mode mode, mos::string_view name, size_t stack_size, void *stack) |
Thread * | thread_complete_init (Thread *thread) |
Thread * | thread_get (tid_t id) |
bool | thread_wait_for_tid (tid_t tid) |
void | thread_exit (Thread *&&t) |
void | thread_exit_locked (Thread *&&t) |
Variables | |
mos::HashMap< tid_t, Thread * > | thread_table |
should_inline bool thread_is_valid | ( | const Thread * | thread | ) |
Definition at line 13 of file thread.hpp.
Referenced by scheduler_add_thread(), scheduler_remove_thread(), thread_complete_init(), thread_destroy(), thread_exit(), thread_exit_locked(), thread_get(), and vsnprintf_do_pointer_kernel().
Thread * thread_allocate | ( | Process * | owner, |
thread_mode | tflags ) |
Definition at line 37 of file thread.cpp.
Referenced by process_do_fork(), and thread_new().
Definition at line 52 of file thread.cpp.
Referenced by process_destroy(), process_do_execveat(), process_exit(), and thread_new().
PtrResult< Thread > thread_new | ( | Process * | owner, |
thread_mode | mode, | ||
mos::string_view | name, | ||
size_t | stack_size, | ||
void * | stack ) |
Definition at line 77 of file thread.cpp.
Referenced by create_thread(), kthread_create_no_sched(), and process_new().
Definition at line 165 of file thread.cpp.
Referenced by create_thread(), elf_create_process(), kthread_create_no_sched(), and process_do_fork().
Definition at line 174 of file thread.cpp.
Referenced by MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), Console::putc(), thread_wait_for_tid(), and waitlist_wake().
Definition at line 189 of file thread.cpp.
Referenced by MOS_STATIC_ASSERT(), process_do_execveat(), and process_exit().
Definition at line 210 of file thread.cpp.
Referenced by MOS_STATIC_ASSERT().
Definition at line 217 of file thread.cpp.
Referenced by process_exit(), and thread_exit().
|
extern |
Definition at line 24 of file thread.cpp.
Referenced by process_exit(), tasks_sysfs_thread_list(), thread_complete_init(), thread_destroy(), and thread_get().