pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.83 2000/04/17 18:47:44 mast Exp $ +  * $Id: threads.h,v 1.84 2000/04/18 06:53:48 jonasw Exp $    */   #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "interpret.h"   #include "object.h"   #include "error.h"      /* Needed for the sigset_t typedef, which is needed for
pike.git/src/threads.h:649:   #endif   #endif      extern int threads_disabled;   extern int thread_storage_offset;      #ifndef NO_PIKE_SHORTHAND   #define MUTEX_T PIKE_MUTEX_T   #endif    +  + /* Initializer macros for static mutex and condition variables */ + #ifdef PTHREAD_MUTEX_INITIALIZER + #define STATIC_MUTEX_INIT = PTHREAD_MUTEX_INITIALIZER + #else + #define STATIC_MUTEX_INIT + #endif + #ifdef PTHREAD_COND_INITIALIZER + #define STATIC_COND_INIT = PTHREAD_COND_INITIALIZER + #else + #define STATIC_COND_INIT + #endif +  +  +    #endif /* THREADS_H */