32#define cthread_init() \
36#define cthread_uninit(retval) \
50#define MUTEX_INITIALIZER { 0 }
52#define mutex_init(m) ((m)->x = 0)
55#define mutex_lock(m) ((m)->x = 1)
56#define mutex_try_lock(m) ((m)->x ? 0 : ((m)->x = 1))
57#define mutex_wait_lock(m) ((m)->x = 1)
58#define mutex_unlock(m) ((m)->x = 0)
67#define CONDITION_INITIALIZER { 0 }
69#define condition_init(c) \
72#define condition_clear(c) \
76#define condition_signal(c) \
80#define condition_broadcast(c) \
84#define condition_wait(c, m) \
101#define cthread_fork(func, arg) (cthread_t) NULL
103#define cthread_join(t) 0
105#define cthread_yield() \
109#define cthread_exit(result) exit(result)
111#define cthread_self() (cthread_t) NULL
114#define mutex_alloc() BOGUSCODE
115#define mutex_set_name(m, x) BOGUSCODE
116#define mutex_name(m) BOGUSCODE
117#define mutex_free(m) BOGUSCODE
119#define condition_alloc() BOGUSCODE
120#define condition_set_name(c, x) BOGUSCODE
121#define condition_name(c) BOGUSCODE
122#define condition_free(c) BOGUSCODE
124#define cthread_detach() BOGUSCODE
125#define cthread_sp() BOGUSCODE
126#define cthread_assoc(id, t) BOGUSCODE
127#define cthread_set_name BOGUSCODE
128#define cthread_name BOGUSCODE
129#define cthread_count() BOGUSCODE
130#define cthread_set_limit BOGUSCODE
131#define cthread_limit() BOGUSCODE
132#define cthread_set_data(t, x) BOGUSCODE
133#define cthread_data(t) BOGUSCODE
long cthread_t
Definition: cthreads.h:99
struct condition * condition_t
int cthread
Definition: cthreads.h:91
Definition: cthreads.h:63
int x
Definition: cthreads.h:64
Definition: cthreads.h:46
int x
Definition: cthreads.h:47