pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:11: Inside #if defined(_REENTRANT)
  #ifdef _REENTRANT      #include "pike_error.h"      /* Define to get a debug trace of thread operations. Debug levels can be 0-2. */   /* #define VERBOSE_THREADS_DEBUG 1 */      /* #define PROFILE_CHECK_THREADS */      #ifndef CONFIGURE_TEST -  + #define IN_THREAD_CODE   #include "threads.h"   #include "array.h"   #include "mapping.h"   #include "object.h"   #include "pike_macros.h"   #include "callback.h"   #include "builtin_functions.h"   #include "constants.h"   #include "program.h"   #include "program_id.h"
pike.git/src/threads.c:47:   #include <sys/prctl.h>   #endif /* HAVE_SYS_PRCTL_H */      #ifdef HAVE_SYS_TIME_H   #include <sys/time.h>   #endif   #ifdef HAVE_TIME_H   #include <time.h>   #endif    + /* This is used for strapping the interpreter before the threads +  * are loaded, and when there's no support for threads. +  */ + static struct Pike_interpreter_struct static_pike_interpreter; +  + PMOD_EXPORT struct Pike_interpreter_struct *Pike_interpreter_pointer = +  &static_pike_interpreter; +    #else /* CONFIGURE_TEST */   #include "pike_threadlib.h"   #endif      #ifndef VERBOSE_THREADS_DEBUG   #define THREADS_FPRINTF(LEVEL,FPRINTF_ARGS)   #else   #define THREADS_FPRINTF(LEVEL,FPRINTF_ARGS) do { \    if ((VERBOSE_THREADS_DEBUG + 0) >= (LEVEL)) { \    /* E.g. THREADS_DISALLOW is used in numerous places where the */ \