47 if (thread->
id ==
ERR)
#define errno
Error number variable.
#define LIST_FOR_EACH(elem, list, member)
Iterates over a list.
static void list_remove(list_t *list, list_entry_t *entry)
Removes a list entry from its current list.
static void list_push(list_t *list, list_entry_t *entry)
Pushes an entry to the end of the list.
static void list_entry_init(list_entry_t *entry)
Initializes a list entry.
static void list_init(list_t *list)
Initializes a list.
#define NULL
Pointer error value.
#define ERR
Integer error value.
__UINT64_TYPE__ tid_t
Thread Identifier.
void _threading_init(void)
static void _thread_init(_thread_t *thread)
_thread_t * _thread_get(tid_t id)
_thread_t * _thread_new(_thread_entry_t entry, void *private)
void _thread_free(_thread_t *thread)
static tid_t _syscall_thread_create(void *entry, void *arg)
static tid_t _syscall_gettid(void)
static errno_t _syscall_errno(void)
void(* _thread_entry_t)(_thread_t *)
#define atomic_init(obj, value)
_PUBLIC void * malloc(size_t size)
_PUBLIC void free(void *ptr)
_PUBLIC int mtx_lock(mtx_t *mtx)
_PUBLIC int mtx_init(mtx_t *mtx, int type)
_PUBLIC int mtx_unlock(mtx_t *mtx)