|
PatchworkOS
|
#include <stdatomic.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <sys/proc.h>#include <threads.h>#include "user/common/syscalls.h"#include "user/common/thread.h"Go to the source code of this file.
Functions | |
| void | thrd_exit (int res) |
| void thrd_exit | ( | int | res | ) |
Definition at line 11 of file thrd_exit.c.
References _syscall_thread_exit(), _THREAD_DETACHED, _THREAD_EXITED, _thread_free(), _thread_get(), abort(), atomic_exchange, CLOCKS_NEVER, fprintf(), futex(), FUTEX_ALL, FUTEX_WAKE, gettid(), NULL, _thread_t::result, _thread_t::state, and stderr.
Referenced by _thread_entry().