pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.182 2002/09/14 02:46:27 mast Exp $"); + RCSID("$Id: threads.c,v 1.183 2002/09/14 02:50:50 mast Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;      #ifdef _REENTRANT   #include "threads.h"   #include "array.h"   #include "mapping.h"   #include "object.h"   #include "pike_macros.h"
pike.git/src/threads.c:177:      static struct callback *threads_evaluator_callback=0;   int thread_id_result_variable;      int th_running = 0;   #ifdef PIKE_DEBUG   int debug_interpreter_is_locked = 0;   THREAD_T debug_locking_thread;   THREAD_T threads_disabled_thread = 0;   #endif + #ifdef INTERNAL_PROFILING + PMOD_EXPORT unsigned long thread_yields = 0; + #endif   PMOD_EXPORT MUTEX_T interpreter_lock;   MUTEX_T thread_table_lock, interleave_lock;   struct program *mutex_key = 0;   PMOD_EXPORT struct program *thread_id_prog = 0;   struct program *thread_local_prog = 0;   #ifdef POSIX_THREADS   pthread_attr_t pattr;   pthread_attr_t small_pattr;   #endif   PMOD_EXPORT ptrdiff_t thread_storage_offset;