pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:21:   #define mt_lock(X) pthread_mutex_lock(X)   #define mt_trylock(X) pthread_mutex_trylock(X)   #define mt_unlock(X) pthread_mutex_unlock(X)   #define mt_destroy(X) pthread_mutex_destroy(X)   #define DEFINE_MUTEX(X) MUTEX_T X      extern MUTEX_T interpreter_lock;      #define th_create(ID,fun,arg) pthread_create(ID,&pattr,fun,arg)   #define th_exit(foo) pthread_exit(foo) + #define th_self() pthread_self()      #define COND_T pthread_cond_t   #define co_init(X) pthread_cond_init((X), 0)   #define co_wait(COND, MUTEX) pthread_cond_wait((COND), (MUTEX))   #define co_signal(X) pthread_cond_signal(X)   #define co_broadcast(X) pthread_cond_broadcast(X)   #define co_destroy(X) pthread_cond_destroy(X)      struct svalue;   struct frame;