pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1: Inside #if undefined(THREADS_H)
  #ifndef THREADS_H   #define THREADS_H      #include "machine.h"   #include "interpret.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    * SGI_SPROC_THREADS : SGI sproc() based threads    */   
pike.git/src/threads.h:196:    mark_stack_malloced=_tmp.mark_stack_malloced; \    thread_id = _tmp.thread_id; \    } \    } while(0)      /* Prototypes begin here */   struct thread_starter;   void *new_thread_func(void * data);   void f_thread_create(INT32 args);   void f_this_thread(INT32 args); - void th_init(); + void th_init(void);   struct mutex_storage;   struct key_storage;   void f_mutex_lock(INT32 args);   void f_mutex_trylock(INT32 args);   void init_mutex_obj(struct object *o);   void exit_mutex_obj(struct object *o);   void init_mutex_key_obj(struct object *o);   void exit_mutex_key_obj(struct object *o);   void f_cond_wait(INT32 args);   void f_cond_signal(INT32 args);   void f_cond_broadcast(INT32 args);   void init_cond_obj(struct object *o);   void exit_cond_obj(struct object *o); - void th_cleanup(); + void th_cleanup(void);   /* Prototypes end here */      #else   #define th_setconcurrency(X)   #define DEFINE_MUTEX(X)   #define mt_init(X)   #define mt_lock(X)   #define mt_unlock(X)   #define mt_destroy(X)   #define THREADS_ALLOW()   #define THREADS_DISALLOW()   #define th_init()   #define th_cleanup()   #define th_init_programs()   #endif /* _REENTRANT */         extern int threads_disabled;      #endif /* THREADS_H */