pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:7: Inside #if defined(HAVE_SYS_TYPES_H)
  #include "error.h"   #ifdef HAVE_SYS_TYPES_H   /* Needed for pthread_t on OSF/1 */   #include <sys/types.h>   #endif /* HAVE_SYS_TYPES_H */   #ifdef _REENTRANT      /*    * Decide which type of threads to use    * -  * UNIX_THREADS : Unix international threads -  * POSIX_THREADS : POSIX standard threads +  * UNIX_THREADS : Unix international threads +  * POSIX_THREADS : POSIX standard threads    * SGI_SPROC_THREADS : SGI sproc() based threads -  +  * NT_THREADS : NT threads    */      #ifdef _UNIX_THREADS   #ifdef HAVE_THREAD_H   #define UNIX_THREADS   #include <thread.h>   #undef HAVE_PTHREAD_H   #undef HAVE_THREAD_H   #endif   #endif /* _UNIX_THREADS */
pike.git/src/threads.h:106:   #define MUTEX_T mutex_t   #define mt_init(X) mutex_init((X),USYNC_THREAD,0)   #define mt_lock(X) mutex_lock(X)   #define mt_trylock(X) mutex_trylock(X)   #define mt_unlock(X) mutex_unlock(X)   #define mt_destroy(X) mutex_destroy(X)      #define th_setconcurrency(X) thr_setconcurrency(X)      #define th_create(ID,fun,arg) thr_create(NULL,0,fun,arg,THR_DAEMON,ID) - #define th_create_small(ID,fun,arg) thr_create(NULL,32768,fun,arg,THR_DAEMON,ID) + #define th_create_small(ID,fun,arg) thr_create(NULL,32768,fun,arg,THR_DAEMON|THR_DETACHED,ID)   #define th_exit(foo) thr_exit(foo)   #define th_self() thr_self()   #define th_yield() thr_yield()      #define COND_T cond_t   #define co_init(X) cond_init((X),USYNC_THREAD,0)   #define co_wait(COND, MUTEX) cond_wait((COND), (MUTEX))   #define co_signal(X) cond_signal(X)   #define co_broadcast(X) cond_broadcast(X)   #define co_destroy(X) cond_destroy(X)