Branch: Tag:

2003-06-26

2003-06-26 08:28:17 by Tomas Nilsson <tomas@roxen.com>

Added configure option to set the thread c-stack size. The default is
sometimes too small on windows when building without c-opt.

Rev: src/acconfig.h:1.112
Rev: src/configure.in:1.665
Rev: src/pike_threadlib.h:1.27
Rev: src/threads.c:1.198

2:   || 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;
37:   #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)   {