MOS Source Code
|
#include <mos/tasks/task_types.h>
Go to the source code of this file.
Macros | |
#define | THREAD_MAGIC_THRD MOS_FOURCC('T', 'H', 'R', 'D') |
Functions | |
should_inline bool | thread_is_valid (const thread_t *thread) |
thread_t * | thread_allocate (process_t *owner, thread_mode tflags) |
void | thread_destroy (thread_t *thread) |
thread_t * | thread_new (process_t *owner, thread_mode mode, const char *name, size_t stack_size, void *stack) |
thread_t * | thread_complete_init (thread_t *thread) |
thread_t * | thread_get (tid_t id) |
bool | thread_wait_for_tid (tid_t tid) |
void | thread_exit (thread_t *t) |
void | thread_exit_locked (thread_t *t) |
Variables | |
hashmap_t | thread_table |
#define THREAD_MAGIC_THRD MOS_FOURCC('T', 'H', 'R', 'D') |
Definition at line 7 of file thread.h.
Referenced by thread_allocate(), and thread_is_valid().
should_inline bool thread_is_valid | ( | const thread_t * | thread | ) |
Definition at line 13 of file thread.h.
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_t * thread_allocate | ( | process_t * | owner, |
thread_mode | tflags ) |
Definition at line 31 of file thread.c.
Referenced by process_do_fork(), and thread_new().
Definition at line 46 of file thread.c.
Referenced by process_destroy(), process_do_execveat(), process_exit(), and thread_new().
thread_t * thread_new | ( | process_t * | owner, |
thread_mode | mode, | ||
const char * | name, | ||
size_t | stack_size, | ||
void * | stack ) |
Definition at line 77 of file thread.c.
Referenced by create_thread(), kthread_create_no_sched(), and process_new().
Definition at line 156 of file thread.c.
Referenced by create_thread(), elf_create_process(), kthread_create_no_sched(), and process_do_fork().
Definition at line 166 of file thread.c.
Referenced by console_putc(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), MOS_STATIC_ASSERT(), thread_wait_for_tid(), and waitlist_wake().
Definition at line 175 of file thread.c.
Referenced by MOS_STATIC_ASSERT(), process_do_execveat(), and process_exit().
Definition at line 203 of file thread.c.
Referenced by process_exit(), and thread_exit().
|
extern |
Definition at line 23 of file thread.c.
Referenced by process_exit(), tasks_init(), tasks_sysfs_thread_list(), thread_complete_init(), thread_destroy(), and thread_get().