pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   #include "global.h" - RCSID("$Id: threads.c,v 1.173 2004/03/03 13:59:10 grubba Exp $"); + RCSID("$Id: threads.c,v 1.174 2004/03/08 15:02:43 grubba 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:28:   #include <sys/prctl.h>   #endif /* HAVE_SYS_PRCTL_H */      PMOD_EXPORT int live_threads = 0;   PMOD_EXPORT COND_T live_threads_change;   PMOD_EXPORT COND_T threads_disabled_change;   PMOD_EXPORT size_t thread_stack_size=1024 * 1204;      PMOD_EXPORT void thread_low_error (int errcode)   { -  fatal ("Unexpected error from thread function: %d\n", errcode); +  fatal ("%s:%d: %s\n" +  "Unexpected error from thread function: %d\n", +  fname, lineno, cmd, errcode);   }      #ifdef USE_CLOCK_FOR_SLICES   PMOD_EXPORT clock_t thread_start_clock = 0;   #endif      #ifndef HAVE_PTHREAD_ATFORK   #include "callback.h"   #define PIKE_USE_OWN_ATFORK