STLdoc
STLdocumentation
|
#include <thr/xthreads.h>
Go to the source code of this file.
Macros | |
#define | _THR_THREADS_H |
#define | thrd_create(thr, fun, arg) _Thrd_create(thr, fun, arg) |
#define | thrd_detach(thr) _Thrd_detach(thr) |
#define | thrd_exit(code) _Thrd_exit(code) |
#define | thrd_join(thr, res) _Thrd_join(thr, res) |
#define | thrd_sleep(tm) _Thrd_sleep(tm) |
#define | thrd_yield _Thrd_yield |
#define | thrd_equal(thr0, thr1) _Thrd_equal(thr0, thr1) |
#define | thrd_current _Thrd_current |
#define | mtx_init(mtx, typ) _Mtx_init(mtx, typ) |
#define | mtx_destroy(mtx) _Mtx_destroy((*mtx)) |
#define | mtx_current_owns(mtx) _Mtx_current_owns((*mtx)) |
#define | mtx_lock(mtx) _Mtx_lock((*mtx)) |
#define | mtx_trylock(mtx) _Mtx_trylock((*mtx)) |
#define | mtx_timedlock(mtx, tm) _Mtx_timedlock((*mtx), tm) |
#define | mtx_unlock(mtx) _Mtx_unlock((*mtx)) |
#define | cnd_init(cnd) _Cnd_init(cnd) |
#define | cnd_destroy(cnd) _Cnd_destroy((*cnd)) |
#define | cnd_timedwait(cnd, mtx, tm) _Cnd_timedwait((*cnd), (*mtx), tm) |
#define | cnd_wait(cnd, mtx) _Cnd_wait((*cnd), (*mtx)) |
#define | cnd_broadcast(cnd) _Cnd_broadcast((*cnd)) |
#define | cnd_broadcast_at_thread_exit(cnd, mtx) _Cnd_register_at_thread_exit((*cnd), (*mtx), 0) |
#define | cnd_signal(cnd) _Cnd_signal((*cnd)) |
#define | TSS_DTOR_ITERATIONS _TSS_DTOR_ITERATIONS |
#define | tss_create(key, dtor) _Tss_create(key, dtor) |
#define | tss_delete(key) _Tss_delete(key) |
#define | tss_set(key, value) _Tss_set(key, value) |
#define | tss_get(key) _Tss_get(key) |
#define | thread_abort _Thread_abort |
Typedefs | |
typedef _Thrd_t | thrd_t |
typedef _Thrd_start_t | thrd_start_t |
typedef _Mtx_imp_t | mtx_t |
typedef _Cnd_t | cnd_t |
typedef _Tss_t | tss_t |
typedef _Tss_dtor_t | tss_dtor_t |
Enumerations | |
enum | { thrd_success = _Thrd_success, thrd_nomem = _Thrd_nomem, thrd_timedout = _Thrd_timedout, thrd_busy = _Thrd_busy, thrd_error = _Thrd_error } |
enum | { mtx_plain = _Mtx_plain, mtx_try = _Mtx_try, mtx_timed = _Mtx_timed, mtx_recursive = _Mtx_recursive } |
#define _THR_THREADS_H |
#define cnd_broadcast | ( | cnd | ) | _Cnd_broadcast((*cnd)) |
#define cnd_broadcast_at_thread_exit | ( | cnd, | |
mtx | |||
) | _Cnd_register_at_thread_exit((*cnd), (*mtx), 0) |
#define cnd_destroy | ( | cnd | ) | _Cnd_destroy((*cnd)) |
#define cnd_init | ( | cnd | ) | _Cnd_init(cnd) |
#define cnd_signal | ( | cnd | ) | _Cnd_signal((*cnd)) |
#define cnd_timedwait | ( | cnd, | |
mtx, | |||
tm | |||
) | _Cnd_timedwait((*cnd), (*mtx), tm) |
#define cnd_wait | ( | cnd, | |
mtx | |||
) | _Cnd_wait((*cnd), (*mtx)) |
#define mtx_current_owns | ( | mtx | ) | _Mtx_current_owns((*mtx)) |
#define mtx_destroy | ( | mtx | ) | _Mtx_destroy((*mtx)) |
#define mtx_init | ( | mtx, | |
typ | |||
) | _Mtx_init(mtx, typ) |
#define mtx_lock | ( | mtx | ) | _Mtx_lock((*mtx)) |
#define mtx_timedlock | ( | mtx, | |
tm | |||
) | _Mtx_timedlock((*mtx), tm) |
#define mtx_trylock | ( | mtx | ) | _Mtx_trylock((*mtx)) |
#define mtx_unlock | ( | mtx | ) | _Mtx_unlock((*mtx)) |
#define thrd_create | ( | thr, | |
fun, | |||
arg | |||
) | _Thrd_create(thr, fun, arg) |
#define thrd_current _Thrd_current |
#define thrd_detach | ( | thr | ) | _Thrd_detach(thr) |
#define thrd_equal | ( | thr0, | |
thr1 | |||
) | _Thrd_equal(thr0, thr1) |
#define thrd_exit | ( | code | ) | _Thrd_exit(code) |
#define thrd_join | ( | thr, | |
res | |||
) | _Thrd_join(thr, res) |
#define thrd_sleep | ( | tm | ) | _Thrd_sleep(tm) |
#define thrd_yield _Thrd_yield |
#define thread_abort _Thread_abort |
#define tss_create | ( | key, | |
dtor | |||
) | _Tss_create(key, dtor) |
#define tss_delete | ( | key | ) | _Tss_delete(key) |
#define TSS_DTOR_ITERATIONS _TSS_DTOR_ITERATIONS |
#define tss_get | ( | key | ) | _Tss_get(key) |
#define tss_set | ( | key, | |
value | |||
) | _Tss_set(key, value) |
typedef _Mtx_imp_t mtx_t |
typedef _Thrd_start_t thrd_start_t |
typedef _Tss_dtor_t tss_dtor_t |
anonymous enum |
Enumerator | |
---|---|
thrd_success | |
thrd_nomem | |
thrd_timedout | |
thrd_busy | |
thrd_error |