#include <pthread.h>
Go to the source code of this file.
|
#define | BOGUSCODE (BOGUS_USE_OF_PTHREADS) /* force compilation error */ |
|
#define | RVM_MUTEX pthread_mutex_t |
|
#define | RVM_CONDITION pthread_cond_t |
|
#define | MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER |
|
#define | cthread_t pthread_t * |
|
#define | cthread_fork(fname, arg) |
|
#define | cthread_join(t) |
|
#define | cthread_init() |
|
#define | cthread_uninit(retval) |
|
#define | cthread_exit(retval) (pthread_exit((void *)(retval))) |
|
#define | cthread_yield() |
|
#define | condition_wait(c, m) (pthread_cond_wait((c), (m))) |
|
#define | condition_signal(c) (pthread_cond_signal((c))) |
|
#define | condition_broadcast(c) (pthread_cond_broadcast((c))) |
|
#define | condition_clear(c) /* nop */ |
|
#define | condition_init(c) (pthread_cond_init((c), NULL)) |
|
#define | mutex_init(m) (pthread_mutex_init((m), NULL)) |
|
#define | mutex_clear(m) (pthread_mutex_destroy(m), NULL) |
|
#define | LOCK_FREE(m) (rvm_lock_free(&(m))) |
|
#define | cthread_self() (rvm_pthreadid = pthread_self(), &rvm_pthreadid) |
|
#define | mutex_lock(m) (pthread_mutex_lock((m))) |
|
#define | mutex_unlock(m) (pthread_mutex_unlock((m))) |
|
#define | mutex_alloc() BOGUSCODE |
|
#define | mutex_set_name(m, x) BOGUSCODE |
|
#define | mutex_name(m) BOGUSCODE |
|
#define | mutex_free(m) BOGUSCODE |
|
#define | condition_alloc() BOGUSCODE |
|
#define | condition_set_name(c, x) BOGUSCODE |
|
#define | condition_name(c) BOGUSCODE |
|
#define | condition_free(c) BOGUSCODE |
|
#define | cthread_detach() BOGUSCODE |
|
#define | cthread_sp() BOGUSCODE |
|
#define | cthread_assoc(id, t) BOGUSCODE |
|
#define | cthread_set_name BOGUSCODE |
|
#define | cthread_name BOGUSCODE |
|
#define | cthread_count() BOGUSCODE |
|
#define | cthread_set_limit BOGUSCODE |
|
#define | cthread_limit() BOGUSCODE |
|
#define | cthread_set_data(t, x) BOGUSCODE |
|
#define | cthread_data(t) BOGUSCODE |
|
◆ BOGUSCODE
#define BOGUSCODE (BOGUS_USE_OF_PTHREADS) /* force compilation error */ |
◆ condition_alloc
◆ condition_broadcast
#define condition_broadcast |
( |
|
c | ) |
(pthread_cond_broadcast((c))) |
◆ condition_clear
#define condition_clear |
( |
|
c | ) |
/* nop */ |
◆ condition_free
◆ condition_init
◆ condition_name
◆ condition_set_name
◆ condition_signal
#define condition_signal |
( |
|
c | ) |
(pthread_cond_signal((c))) |
◆ condition_wait
#define condition_wait |
( |
|
c, |
|
|
|
m |
|
) |
| (pthread_cond_wait((c), (m))) |
◆ cthread_assoc
◆ cthread_count
◆ cthread_data
◆ cthread_detach
◆ cthread_exit
#define cthread_exit |
( |
|
retval | ) |
(pthread_exit((void *)(retval))) |
◆ cthread_fork
Value:
pthread_t rvm_pthreadid
Definition: rvm_pthread.c:22
#define NULL
Definition: voltypes.h:44
◆ cthread_init
◆ cthread_join
Value:
void * rvm_ptstat
Definition: rvm_pthread.c:23
int rvm_join_res
Definition: rvm_pthread.c:24
◆ cthread_limit
◆ cthread_name
◆ cthread_self
◆ cthread_set_data
◆ cthread_set_limit
◆ cthread_set_name
◆ cthread_sp
◆ cthread_t
◆ cthread_uninit
#define cthread_uninit |
( |
|
retval | ) |
|
◆ cthread_yield
◆ LOCK_FREE
◆ mutex_alloc
◆ mutex_clear
#define mutex_clear |
( |
|
m | ) |
(pthread_mutex_destroy(m), NULL) |
◆ mutex_free
◆ mutex_init
#define mutex_init |
( |
|
m | ) |
(pthread_mutex_init((m), NULL)) |
◆ MUTEX_INITIALIZER
#define MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER |
◆ mutex_lock
#define mutex_lock |
( |
|
m | ) |
(pthread_mutex_lock((m))) |
◆ mutex_name
◆ mutex_set_name
◆ mutex_unlock
#define mutex_unlock |
( |
|
m | ) |
(pthread_mutex_unlock((m))) |
◆ RVM_CONDITION
#define RVM_CONDITION pthread_cond_t |
◆ RVM_MUTEX
#define RVM_MUTEX pthread_mutex_t |
◆ rvm_lock_free()
int rvm_lock_free |
( |
pthread_mutex_t * |
m | ) |
|
◆ rvm_join_res
◆ rvm_pthreadid
◆ rvm_ptstat