16 fprintf(
stderr,
"libstd: thrd_exit called from unknown thread\n");
tid_t gettid(void)
System call to retrieve the current tid.
uint64_t futex(atomic_uint64_t *addr, uint64_t val, futex_op_t op, clock_t timeout)
System call for fast user space mutual exclusion.
#define FUTEX_ALL
Futex wake all constant.
@ FUTEX_WAKE
The futex operation for waking up a amount of threads specified by the val argument.
#define NULL
Pointer error value.
_thread_t * _thread_get(tid_t id)
void _thread_free(_thread_t *thread)
static _NORETURN void _syscall_thread_exit(void)
#define atomic_exchange(object, desired)
_PUBLIC int fprintf(FILE *_RESTRICT stream, const char *_RESTRICT format,...)
_PUBLIC _NORETURN void abort(void)