reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
vthread.hxx File Reference
#include <pthread.h>

Go to the source code of this file.

Macros

#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
 

Macro Definition Documentation

◆ vcond_broadcast

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

Definition at line 53 of file vthread.hxx.

◆ vcond_destroy

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

Definition at line 37 of file vthread.hxx.

◆ vcond_init

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

Definition at line 33 of file vthread.hxx.

◆ vcond_signal

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

Definition at line 49 of file vthread.hxx.

◆ vcond_timedwait

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

Definition at line 45 of file vthread.hxx.

◆ vcond_wait

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

Definition at line 41 of file vthread.hxx.

◆ vmutex_destroy

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

Definition at line 21 of file vthread.hxx.

◆ vmutex_init

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

Definition at line 17 of file vthread.hxx.

◆ vmutex_lock

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

Definition at line 25 of file vthread.hxx.

◆ vmutex_unlock

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

Definition at line 29 of file vthread.hxx.

Typedef Documentation

◆ vcondition_t

Definition at line 13 of file vthread.hxx.

◆ vmutex_t

Definition at line 12 of file vthread.hxx.

◆ vthread_attr_t

Definition at line 14 of file vthread.hxx.

◆ vthread_t

Definition at line 11 of file vthread.hxx.