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.197 2003/04/03 16:58:36 mast Exp $ + || $Id: threads.c,v 1.198 2003/06/26 08:28:17 tomas Exp $   */      #include "global.h" - RCSID("$Id: threads.c,v 1.197 2003/04/03 16:58:36 mast Exp $"); + RCSID("$Id: threads.c,v 1.198 2003/06/26 08:28:17 tomas 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:30:   #include "bignum.h"   #include "signal_handler.h"   #include "rusage.h"      #include <errno.h>      #ifdef HAVE_SYS_PRCTL_H   #include <sys/prctl.h>   #endif /* HAVE_SYS_PRCTL_H */    + #ifndef PIKE_THREAD_C_STACK_SIZE + #define PIKE_THREAD_C_STACK_SIZE (256 * 1024) + #endif +    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; + PMOD_EXPORT size_t thread_stack_size=PIKE_THREAD_C_STACK_SIZE;      PMOD_EXPORT void thread_low_error (int errcode)   {    Pike_fatal ("Unexpected error from thread function: %d\n", errcode);   }      /* SCO magic... */   int __thread_sys_behavior = 1;      #if !defined(HAVE_PTHREAD_ATFORK) && !defined(th_atfork)