10static mtx_t entryMutex;
40 if (current == thread)
100 if (thread->
id ==
ERR)
140 if (thread->
id ==
id)
#define ENOSPC
No space left on device.
#define errno
Error number variable.
#define NULL
Pointer error value.
#define ERR
Integer error value.
__UINT64_TYPE__ tid_t
Thread Identifier.
static uint64_t _thread_insert(_thread_t *thread)
void _threading_init(void)
_thread_t * _thread_new(thrd_start_t func, void *arg)
static void _thread_remove(_thread_t *thread)
static void _thread_init(_thread_t *thread)
static _NORETURN void _thread_entry(_thread_t *thread)
_thread_t * _thread_get(tid_t id)
void _thread_free(_thread_t *thread)
#define atomic_compare_exchange_strong_explicit(object, expected, desired, success, failure)
#define atomic_load_explicit(object, order)
#define atomic_store_explicit(object, desired, order)
#define atomic_init(obj, value)
_PUBLIC void * malloc(size_t size)
_PUBLIC void free(void *ptr)
static tid_t _syscall_thread_create(void *entry, void *arg)
static tid_t _syscall_gettid(void)
static errno_t _syscall_errno(void)
int(* thrd_start_t)(void *)
_PUBLIC int mtx_lock(mtx_t *mtx)
_PUBLIC int mtx_init(mtx_t *mtx, int type)
_PUBLIC int mtx_unlock(mtx_t *mtx)
_PUBLIC _NORETURN void thrd_exit(int res)