STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Typedefs | Enumerations
threads.h File Reference
#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 }
 

Macro Definition Documentation

#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 Documentation

typedef _Cnd_t cnd_t
typedef _Mtx_imp_t mtx_t
typedef _Thrd_t thrd_t
typedef _Tss_t tss_t

Enumeration Type Documentation

anonymous enum
Enumerator
thrd_success 
thrd_nomem 
thrd_timedout 
thrd_busy 
thrd_error 
14  { /* return codes */
20  };
Definition: xthreads.h:19
Definition: xthreads.h:18
Definition: threads.h:15
Definition: xthreads.h:20
Definition: threads.h:19
Definition: threads.h:16
Definition: threads.h:17
Definition: xthreads.h:21
Definition: xthreads.h:17
Definition: threads.h:18
anonymous enum
Enumerator
mtx_plain 
mtx_try 
mtx_timed 
mtx_recursive 
38  { /* mutex types */
40  mtx_try = _Mtx_try,
43  };
Definition: threads.h:40
Definition: threads.h:41
Definition: xthreads.h:44
Definition: xthreads.h:43
Definition: threads.h:42
Definition: threads.h:39
Definition: xthreads.h:46
Definition: xthreads.h:45