pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.103 2000/08/11 10:46:22 grubba Exp $ +  * $Id: threads.h,v 1.104 2000/10/03 19:13:24 grubba Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "object.h"   #include "error.h"   #include "interpret.h"      /* Needed for the sigset_t typedef, which is needed for
pike.git/src/threads.h:110:   #else   #define th_yield()   #endif /* HAVE_PTHREAD_YIELD */   extern pthread_attr_t pattr;   extern pthread_attr_t small_pattr;      #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_KILL   #define th_kill(ID,sig) pthread_kill((ID),(sig)) -  + #else /* !HAVE_PTHREAD_KILL */ + /* MacOS X (aka Darwin) doesn't have pthread_kill. */ + #define th_kill(ID,sig) + #endif /* HAVE_PTHREAD_KILL */   #define th_join(ID,res) pthread_join((ID),(res))   #ifdef HAVE_PTHREAD_COND_INIT   #define COND_T pthread_cond_t      #ifdef HAVE_PTHREAD_CONDATTR_DEFAULT_AIX   /* AIX wants the & ... */   #define co_init(X) pthread_cond_init((X), &pthread_condattr_default)   #else /* !HAVE_PTHREAD_CONDATTR_DEFAULT_AIX */   #ifdef HAVE_PTHREAD_CONDATTR_DEFAULT   /* ... while FreeBSD doesn't. */