25#ifndef __KOS_WORKER_THREAD_H
26#define __KOS_WORKER_THREAD_H
59 void (*routine)(
void *),
void *
data);
static struct @68 data[BARRIER_COUNT]
Various common macros used throughout the codebase.
void * thd(void *v)
Definition compiler_tls.c:63
#define NULL
Definition memtest.h:26
Thread creation attributes.
Definition thread.h:280
Structure describing one running thread.
Definition thread.h:168
Opaque structure describing one worker thread.
void thd_worker_wakeup(kthread_worker_t *thd)
Wake up a worker thread.
kthread_t * thd_worker_get_thread(kthread_worker_t *thd)
Get a handle to the underlying thread.
void thd_worker_destroy(kthread_worker_t *thd)
Stop and destroy a worker thread.
static kthread_worker_t * thd_worker_create(void(*routine)(void *), void *data)
Create a new worker thread.
Definition worker_thread.h:76
kthread_worker_t * thd_worker_create_ex(const kthread_attr_t *attr, void(*routine)(void *), void *data)
Create a new worker thread with the specific set of attributes.
kthread_worker_t * thd_worker_create_ex(const kthread_attr_t *attr, void(*routine)(void *), void *data)
Create a new worker thread with the specific set of attributes.