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.237 2004/06/29 03:14:15 aldem Exp $ + || $Id: threads.c,v 1.238 2004/07/16 12:44:56 grubba Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h" - RCSID("$Id: threads.c,v 1.237 2004/06/29 03:14:15 aldem Exp $"); + RCSID("$Id: threads.c,v 1.238 2004/07/16 12:44:56 grubba Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      /* #define PICKY_MUTEX */      #ifdef _REENTRANT      #ifndef CONFIGURE_TEST
pike.git/src/threads.c:286: Inside #if defined(PIKE_DEBUG)
   "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.\n"; +  "while threads are disabled. (self: %08x, disabler: %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;