|
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_detach (thrd_t thr) |
| int thrd_detach | ( | thrd_t | thr | ) |
Definition at line 10 of file thrd_detach.c.
References _THREAD_ATTACHED, _THREAD_DETACHED, _thread_get(), atomic_compare_exchange_strong, thrd_t::id, NULL, _thread_t::state, thrd_error, and thrd_success.