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.215 2003/04/02 00:55:09 mast Exp $ + || $Id: threads.c,v 1.216 2003/05/02 15:42:52 grubba Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h" - RCSID("$Id: threads.c,v 1.215 2003/04/02 00:55:09 mast Exp $"); + RCSID("$Id: threads.c,v 1.216 2003/05/02 15:42:52 grubba Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      #ifdef _REENTRANT      #ifndef CONFIGURE_TEST      #include "threads.h"
pike.git/src/threads.c:44:      PMOD_EXPORT int live_threads = 0, disallow_live_threads = 0;   PMOD_EXPORT COND_T live_threads_change;   PMOD_EXPORT COND_T threads_disabled_change;   PMOD_EXPORT size_t thread_stack_size=256 * 1204;      #else   #include "pike_threadlib.h"   #endif /* !CONFIGURE_TEST */    - PMOD_EXPORT void thread_low_error (int errcode) + PMOD_EXPORT void thread_low_error (int errcode, const char *fname, int lineno)   { -  Pike_fatal ("Unexpected error from thread function: %d\n", errcode); +  Pike_fatal ("%s:%d: Unexpected error from thread function: %d\n", +  fname, lineno, errcode);   }      /* SCO magic... */   int __thread_sys_behavior = 1;      #ifndef CONFIGURE_TEST      #if !defined(HAVE_PTHREAD_ATFORK) && !defined(th_atfork)   #include "callback.h"   #define PIKE_USE_OWN_ATFORK