|
PatchworkOS
|
#include <stdatomic.h>#include <stdbool.h>#include <stdio.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 | |
| int | thrd_join (thrd_t thr, int *res) |
| int thrd_join | ( | thrd_t | thr, |
| int * | res | ||
| ) |
Definition at line 10 of file thrd_join.c.
References _THREAD_ATTACHED, _THREAD_DETACHED, _THREAD_EXITED, _thread_free(), _thread_get(), _THREAD_JOINING, atomic_compare_exchange_strong, atomic_load, CLOCKS_NEVER, futex(), FUTEX_WAIT, thrd_t::id, NULL, _thread_t::result, _thread_t::state, thrd_error, and thrd_success.
Referenced by benchmark().