Coda Distributed File System
Macros
rvm_lwp.h File Reference
#include <lwp/lwp.h>
#include <lwp/lock.h>
Include dependency graph for rvm_lwp.h:

Go to the source code of this file.

Macros

#define RVM_STACKSIZE   1024 * 16
 
#define BOGUSCODE   (BOGUS_USE_OF_CTHREADS) /* force compilation error */
 
#define RVM_MUTEX   struct Lock
 
#define RVM_CONDITION   char
 
#define MUTEX_INITIALIZER   { 0, 0, 0, 0 }
 
#define cthread_t   PROCESS
 
#define cthread_init()
 
#define cthread_uninit(retval)
 
#define cthread_exit(retval)
 
#define cthread_yield()
 
#define cthread_join(thread)   (0)
 
#define condition_wait(c, m)
 
#define condition_signal(c)   (LWP_SignalProcess((c)))
 
#define condition_broadcast(c)   (LWP_SignalProcess((c)))
 
#define condition_clear(c)   /* nop */
 
#define condition_init(c)   /* nop */
 
#define mutex_init(m)   (Lock_Init(m))
 
#define mutex_clear(m)   /* nop */
 
#define LOCK_FREE(m)   (!WriteLocked(&(m)))
 
#define mutex_lock(m)   ObtainWriteLock((m))
 
#define mutex_unlock(m)   ReleaseWriteLock((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
 

Macro Definition Documentation

◆ BOGUSCODE

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

◆ condition_alloc

#define condition_alloc ( )    BOGUSCODE

◆ condition_broadcast

#define condition_broadcast (   c)    (LWP_SignalProcess((c)))

◆ condition_clear

#define condition_clear (   c)    /* nop */

◆ condition_free

#define condition_free (   c)    BOGUSCODE

◆ condition_init

#define condition_init (   c)    /* nop */

◆ condition_name

#define condition_name (   c)    BOGUSCODE

◆ condition_set_name

#define condition_set_name (   c,
 
)    BOGUSCODE

◆ condition_signal

#define condition_signal (   c)    (LWP_SignalProcess((c)))

◆ condition_wait

#define condition_wait (   c,
 
)
Value:
do { \
ReleaseWriteLock((m)); \
LWP_WaitProcess((c)); \
ObtainWriteLock((m)); \
} while (0)
char c
Definition: tdb.c:54

◆ 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)

◆ cthread_init

#define cthread_init ( )
Value:
do { \
IOMGR_Initialize(); \
} while (0)
#define LWP_NORMAL_PRIORITY
Definition: lwp.h:86
#define LWP_VERSION
Definition: lwp.h:57
#define NULL
Definition: voltypes.h:44

◆ cthread_join

#define cthread_join (   thread)    (0)

◆ cthread_limit

#define cthread_limit ( )    BOGUSCODE

◆ cthread_name

#define cthread_name   BOGUSCODE

◆ 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

◆ cthread_uninit

#define cthread_uninit (   retval)
Value:
do { \
IOMGR_Finalize(); \
LWP_TerminateProcessSupport(); \
} while (0)

◆ cthread_yield

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

◆ LOCK_FREE

#define LOCK_FREE (   m)    (!WriteLocked(&(m)))

◆ mutex_alloc

#define mutex_alloc ( )    BOGUSCODE

◆ mutex_clear

#define mutex_clear (   m)    /* nop */

◆ mutex_free

#define mutex_free (   m)    BOGUSCODE

◆ mutex_init

#define mutex_init (   m)    (Lock_Init(m))

◆ MUTEX_INITIALIZER

#define MUTEX_INITIALIZER   { 0, 0, 0, 0 }

◆ mutex_lock

#define mutex_lock (   m)    ObtainWriteLock((m))

◆ mutex_name

#define mutex_name (   m)    BOGUSCODE

◆ mutex_set_name

#define mutex_set_name (   m,
 
)    BOGUSCODE

◆ mutex_unlock

#define mutex_unlock (   m)    ReleaseWriteLock((m))

◆ RVM_CONDITION

#define RVM_CONDITION   char

◆ RVM_MUTEX

#define RVM_MUTEX   struct Lock

◆ RVM_STACKSIZE

#define RVM_STACKSIZE   1024 * 16