15 if (
auto ptr = thread)
#define THREAD_MAGIC_THRD
void define_syscall thread_exit(void)
basic_string_view< char > string_view
should_inline bool thread_is_valid(const Thread *thread)
void thread_destroy(Thread *thread)
Thread * thread_get(tid_t id)
mos::HashMap< tid_t, Thread * > thread_table
Thread * thread_allocate(Process *owner, thread_mode tflags)
bool thread_wait_for_tid(tid_t tid)
PtrResult< Thread > thread_new(Process *owner, thread_mode mode, mos::string_view name, size_t stack_size, void *stack)
void thread_exit_locked(Thread *&&t)
Thread * thread_complete_init(Thread *thread)