reSIProcate/rutil  9694
Defines | Typedefs
vthread.hxx File Reference
#include <pthread.h>
Include dependency graph for vthread.hxx:

Go to the source code of this file.

Defines

#define vmutex_init(mutex)   pthread_mutex_init((mutex),0)
#define vmutex_destroy(mutex)   pthread_mutex_destroy((mutex))
#define vmutex_lock(mutex)   pthread_mutex_lock((mutex))
#define vmutex_unlock(mutex)   pthread_mutex_unlock((mutex))
#define vcond_init(cond)   pthread_cond_init((cond),0)
#define vcond_destroy(cond)   pthread_cond_destroy((cond))
#define vcond_wait(cond, mutex)   pthread_cond_wait((cond),(mutex))
#define vcond_timedwait(cond, mutex, timeout)   pthread_cond_timedwait((cond),(mutex),(timeout))
#define vcond_signal(cond)   pthread_cond_signal((cond))
#define vcond_broadcast(cond)   pthread_cond_broadcast((cond))

Typedefs

typedef pthread_t vthread_t
typedef pthread_mutex_t vmutex_t
typedef pthread_cond_t vcondition_t
typedef pthread_attr_t vthread_attr_t

Define Documentation

#define vcond_broadcast (   cond)    pthread_cond_broadcast((cond))

Definition at line 53 of file vthread.hxx.

#define vcond_destroy (   cond)    pthread_cond_destroy((cond))

Definition at line 37 of file vthread.hxx.

#define vcond_init (   cond)    pthread_cond_init((cond),0)

Definition at line 33 of file vthread.hxx.

#define vcond_signal (   cond)    pthread_cond_signal((cond))

Definition at line 49 of file vthread.hxx.

#define vcond_timedwait (   cond,
  mutex,
  timeout 
)    pthread_cond_timedwait((cond),(mutex),(timeout))

Definition at line 45 of file vthread.hxx.

#define vcond_wait (   cond,
  mutex 
)    pthread_cond_wait((cond),(mutex))

Definition at line 41 of file vthread.hxx.

#define vmutex_destroy (   mutex)    pthread_mutex_destroy((mutex))

Definition at line 21 of file vthread.hxx.

#define vmutex_init (   mutex)    pthread_mutex_init((mutex),0)

Definition at line 17 of file vthread.hxx.

#define vmutex_lock (   mutex)    pthread_mutex_lock((mutex))

Definition at line 25 of file vthread.hxx.

#define vmutex_unlock (   mutex)    pthread_mutex_unlock((mutex))

Definition at line 29 of file vthread.hxx.


Typedef Documentation

typedef pthread_cond_t vcondition_t

Definition at line 13 of file vthread.hxx.

typedef pthread_mutex_t vmutex_t

Definition at line 12 of file vthread.hxx.

typedef pthread_attr_t vthread_attr_t

Definition at line 14 of file vthread.hxx.

typedef pthread_t vthread_t

Definition at line 11 of file vthread.hxx.