pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.46 1998/07/17 13:29:16 grubba Exp $ +  * $Id: threads.h,v 1.47 1998/08/06 19:46:56 grubba Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "interpret.h"   #include "object.h"   #include "error.h"   #ifdef HAVE_SYS_TYPES_H   /* Needed for pthread_t on OSF/1 */
pike.git/src/threads.h:80:      #define th_create(ID,fun,arg) pthread_create(ID,&pattr,fun,arg)   #define th_create_small(ID,fun,arg) pthread_create(ID,&small_pattr,fun,arg)   #define th_exit(foo) pthread_exit(foo)   #define th_self() pthread_self()      #ifdef HAVE_PTHREAD_COND_INIT   #define COND_T pthread_cond_t      #ifdef HAVE_PTHREAD_CONDATTR_DEFAULT - #define co_init(X) pthread_cond_init((X), pthread_condattr_default) + #define co_init(X) pthread_cond_init((X), &pthread_condattr_default)   #else   #define co_init(X) pthread_cond_init((X), 0)   #endif /* HAVE_PTHREAD_CONDATTR_DEFAULT */      #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)   #else   #error No way to make cond-vars