Coda Distributed File System
Classes | Macros | Typedefs
cthreads.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mutex
 
struct  condition
 

Macros

#define cthread_init()
 
#define cthread_uninit(retval)
 
#define MUTEX_INITIALIZER   { 0 }
 
#define mutex_init(m)   ((m)->x = 0)
 
#define mutex_clear(m)   /* nop */
 
#define mutex_lock(m)   ((m)->x = 1)
 
#define mutex_try_lock(m)   ((m)->x ? 0 : ((m)->x = 1))
 
#define mutex_wait_lock(m)   ((m)->x = 1)
 
#define mutex_unlock(m)   ((m)->x = 0)
 
#define CONDITION_INITIALIZER   { 0 }
 
#define condition_init(c)
 
#define condition_clear(c)
 
#define condition_signal(c)
 
#define condition_broadcast(c)
 
#define condition_wait(c, m)
 
#define cthread_fork(func, arg)   (cthread_t) NULL
 
#define cthread_join(t)   0
 
#define cthread_yield()
 
#define cthread_exit(result)   exit(result)
 
#define cthread_self()   (cthread_t) NULL
 
#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
 

Typedefs

typedef struct mutexmutex_t
 
typedef struct conditioncondition_t
 
typedef int cthread
 
typedef long cthread_t
 

Macro Definition Documentation

◆ condition_alloc

#define condition_alloc ( )    BOGUSCODE

◆ condition_broadcast

#define condition_broadcast (   c)
Value:
{ \
}

◆ condition_clear

#define condition_clear (   c)
Value:
{ \
}

◆ condition_free

#define condition_free (   c)    BOGUSCODE

◆ condition_init

#define condition_init (   c)
Value:
{ \
}

◆ CONDITION_INITIALIZER

#define CONDITION_INITIALIZER   { 0 }

◆ condition_name

#define condition_name (   c)    BOGUSCODE

◆ condition_set_name

#define condition_set_name (   c,
 
)    BOGUSCODE

◆ condition_signal

#define condition_signal (   c)
Value:
{ \
}

◆ condition_wait

#define condition_wait (   c,
 
)
Value:
{ \
}

◆ 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 (   result)    exit(result)

◆ cthread_fork

#define cthread_fork (   func,
  arg 
)    (cthread_t) NULL

◆ cthread_init

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

◆ cthread_join

#define cthread_join (   t)    0

◆ cthread_limit

#define cthread_limit ( )    BOGUSCODE

◆ cthread_name

#define cthread_name   BOGUSCODE

◆ cthread_self

#define cthread_self (   void)    (cthread_t) NULL

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

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

◆ cthread_yield

#define cthread_yield ( )
Value:
{ \
}

◆ 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)    ((m)->x = 0)

◆ MUTEX_INITIALIZER

#define MUTEX_INITIALIZER   { 0 }

◆ mutex_lock

#define mutex_lock (   m)    ((m)->x = 1)

◆ mutex_name

#define mutex_name (   m)    BOGUSCODE

◆ mutex_set_name

#define mutex_set_name (   m,
 
)    BOGUSCODE

◆ mutex_try_lock

#define mutex_try_lock (   m)    ((m)->x ? 0 : ((m)->x = 1))

◆ mutex_unlock

#define mutex_unlock (   m)    ((m)->x = 0)

◆ mutex_wait_lock

#define mutex_wait_lock (   m)    ((m)->x = 1)

Typedef Documentation

◆ condition_t

typedef struct condition * condition_t

◆ cthread

typedef int cthread

◆ cthread_t

typedef long cthread_t

◆ mutex_t

typedef struct mutex * mutex_t