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.242 2005/01/25 18:58:02 grubba Exp $ + || $Id: threads.c,v 1.243 2005/03/31 02:19:46 nilsson Exp $   */      #ifndef CONFIGURE_TEST   #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;   #endif /* !CONFIGURE_TEST */      /* #define PICKY_MUTEX */
pike.git/src/threads.c:42:   #include <errno.h>      #ifdef HAVE_SYS_PRCTL_H   #include <sys/prctl.h>   #endif /* HAVE_SYS_PRCTL_H */      #ifdef HAVE_SYS_TIME_H   #include <sys/time.h>   #endif    - #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=PIKE_THREAD_C_STACK_SIZE; +       #else   #include "pike_threadlib.h"   #endif /* !CONFIGURE_TEST */    -  + #ifndef PIKE_THREAD_C_STACK_SIZE + #define PIKE_THREAD_C_STACK_SIZE (256 * 1024) + #endif +  + PMOD_EXPORT size_t thread_stack_size=PIKE_THREAD_C_STACK_SIZE; +    PMOD_EXPORT void thread_low_error (int errcode, const char *cmd,    const char *fname, int lineno)   {    Pike_fatal ("%s:%d: %s\n"    "Unexpected error from thread function: %d\n",    fname, lineno, cmd, errcode);   }      /* SCO magic... */   int __thread_sys_behavior = 1;