Coda Distributed File System
Macros | Functions | Variables
rvm_pthread.h File Reference
#include <pthread.h>
Include dependency graph for rvm_pthread.h:

Go to the source code of this file.

Macros

#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
 

Functions

int rvm_lock_free (pthread_mutex_t *m)
 

Variables

pthread_t rvm_pthreadid
 
void * rvm_ptstat
 
int rvm_join_res
 

Macro Definition Documentation

◆ BOGUSCODE

#define BOGUSCODE   (BOGUS_USE_OF_PTHREADS) /* force compilation error */

◆ condition_alloc

#define condition_alloc ( )    BOGUSCODE

◆ condition_broadcast

#define condition_broadcast (   c)    (pthread_cond_broadcast((c)))

◆ condition_clear

#define condition_clear (   c)    /* nop */

◆ condition_free

#define condition_free (   c)    BOGUSCODE

◆ condition_init

#define condition_init (   c)    (pthread_cond_init((c), NULL))

◆ condition_name

#define condition_name (   c)    BOGUSCODE

◆ condition_set_name

#define condition_set_name (   c,
 
)    BOGUSCODE

◆ condition_signal

#define condition_signal (   c)    (pthread_cond_signal((c)))

◆ condition_wait

#define condition_wait (   c,
 
)    (pthread_cond_wait((c), (m)))

◆ cthread_assoc

#define cthread_assoc (   id,
 
)    BOGUSCODE

◆ cthread_count

#define cthread_count ( )    BOGUSCODE

◆ cthread_data

#define cthread_data (   t)    BOGUSCODE

◆ cthread_detach

#define cthread_detach ( )    BOGUSCODE

◆ cthread_exit

#define cthread_exit (   retval)    (pthread_exit((void *)(retval)))

◆ cthread_fork

#define cthread_fork (   fname,
  arg 
)
Value:
(pthread_create(&rvm_pthreadid, NULL, (void *(*)(void *))(fname), (arg)), \
pthread_t rvm_pthreadid
Definition: rvm_pthread.c:22
Definition: rpc2.h:588
#define NULL
Definition: voltypes.h:44

◆ cthread_init

#define cthread_init ( )
Value:
do { \
} while (0)

◆ cthread_join

#define cthread_join (   t)
Value:
(rvm_join_res = pthread_join(*(t), &rvm_ptstat), \
void * rvm_ptstat
Definition: rvm_pthread.c:23
int rvm_join_res
Definition: rvm_pthread.c:24

◆ cthread_limit

#define cthread_limit ( )    BOGUSCODE

◆ cthread_name

#define cthread_name   BOGUSCODE

◆ cthread_self

#define cthread_self (   void)    (rvm_pthreadid = pthread_self(), &rvm_pthreadid)

◆ cthread_set_data

#define cthread_set_data (   t,
 
)    BOGUSCODE

◆ cthread_set_limit

#define cthread_set_limit   BOGUSCODE

◆ cthread_set_name

#define cthread_set_name   BOGUSCODE

◆ cthread_sp

#define cthread_sp ( )    BOGUSCODE

◆ cthread_t

#define cthread_t   pthread_t *

◆ cthread_uninit

#define cthread_uninit (   retval)
Value:
{ \
} /* nop */

◆ cthread_yield

#define cthread_yield ( )
Value:
do { \
} while (0)

◆ LOCK_FREE

#define LOCK_FREE (   m)    (rvm_lock_free(&(m)))

◆ mutex_alloc

#define mutex_alloc ( )    BOGUSCODE

◆ mutex_clear

#define mutex_clear (   m)    (pthread_mutex_destroy(m), NULL)

◆ mutex_free

#define mutex_free (   m)    BOGUSCODE

◆ 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

#define mutex_name (   m)    BOGUSCODE

◆ mutex_set_name

#define mutex_set_name (   m,
 
)    BOGUSCODE

◆ 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

Function Documentation

◆ rvm_lock_free()

int rvm_lock_free ( pthread_mutex_t *  m)

Variable Documentation

◆ rvm_join_res

int rvm_join_res
extern

◆ rvm_pthreadid

pthread_t rvm_pthreadid
extern

◆ rvm_ptstat

void* rvm_ptstat
extern