pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: threads.c,v 1.263 2008/08/05 21:36:34 mast Exp $ + || $Id: threads.c,v 1.264 2008/09/09 16:46:35 mast Exp $   */      #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;      /* #define PICKY_MUTEX */      #ifdef _REENTRANT
pike.git/src/threads.c:279: Inside #if defined(USE_CLOCK_FOR_SLICES)
  #ifdef USE_CLOCK_FOR_SLICES   PMOD_EXPORT clock_t thread_start_clock = 0;   #endif      #ifdef PIKE_DEBUG   PMOD_EXPORT const char msg_ip_not_locked[] =    "Interpreter not locked.\n";   PMOD_EXPORT const char msg_ip_not_locked_this_thr[] =    "Interpreter not locked by this thread.\n";   PMOD_EXPORT const char msg_thr_swapped_over[] = -  "Thread %08x swapped in over existing thread %08x.\n"; +  "Thread 0x%08x swapped in over existing thread 0x%08x.\n";   PMOD_EXPORT const char msg_saved_thread_id[] =    "Saved thread id: ";   PMOD_EXPORT const char msg_swap_in_cur_thr_failed[] =    "SWAP_IN_CURRENT_THREAD failed.\n";   PMOD_EXPORT const char msg_thr_not_swapped_in[] =    "Thread is not swapped in.\n";   PMOD_EXPORT const char msg_cur_thr_not_bound[] =    "Current thread is not bound to the interpreter. "    "Nested use of ALLOW_THREADS()?\n";   PMOD_EXPORT const char msg_thr_states_mixed[] =    "Thread states mixed up between threads.\n";   PMOD_EXPORT const char msg_thr_allow_in_gc[] =    "Threads allowed during garbage collection (pass %d).\n";   PMOD_EXPORT const char msg_thr_allow_in_disabled[] =    "Threads allowed from a different thread " -  "while threads are disabled. (self: %08x, disabler: %08x)\n"; +  "while threads are disabled. (self: 0x%08x, disabler: 0x%08x)\n";   PMOD_EXPORT const char msg_global_dynbuf_in_use[] =    "Threads allowed while the global dynamic buffer is in use.\n";   #endif      struct thread_local   {    INT32 id;   };      static volatile IMUTEX_T *interleave_list = NULL;