pike.git / src / threads.h

version» Context lines:

pike.git/src/threads.h:1:   /* -  * $Id: threads.h,v 1.42 1998/04/30 16:31:20 hubbe Exp $ +  * $Id: threads.h,v 1.43 1998/06/25 14:50:25 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:433:   void exit_thread_obj(struct object *o);   void th_farm(void (*fun)(void *), void *);   void th_init(void);   void th_cleanup(void);   void thread_table_insert(struct object *o);   void thread_table_delete(struct object *o);   struct thread_state *thread_state_for_id(THREAD_T tid);   struct object *thread_for_id(THREAD_T tid);   void f_all_threads(INT32 args);    + void init_threads_disable(struct object *o); + void exit_threads_disable(struct object *o); +    /* 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()
pike.git/src/threads.h:454:   #define THREADS_ALLOW_UID()   #define THREADS_DISALLOW_UID()   #define HIDE_GLOBAL_VARIABLES()   #define REVEAL_GLOBAL_VARIABLES()   #define th_init()   #define th_cleanup()   #define th_init_programs()   #define th_self() ((void*)0)   #define co_signal(X)   #define co_broadcast(X) +  + #define init_threads_disable(X) + #define exit_threads_disable(X) +    #endif /* _REENTRANT */      #ifdef __NT__   #ifndef DEBUG   #define CheckValidHandle(X) 0   #else   void CheckValidHandle(HANDLE h);   #endif   #endif      extern int threads_disabled;      #endif /* THREADS_H */