From: Andrew MacIntyre Date: Mon, 17 Jan 2005 12:21:28 +0000 (+0000) Subject: backport: make thread stack size compile-time tunable on OS/2 X-Git-Tag: v2.3.5c1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=811ded018d860b257bc35ed9f76c4fceb74f2f5b;p=thirdparty%2FPython%2Fcpython.git backport: make thread stack size compile-time tunable on OS/2 --- diff --git a/Python/thread_os2.h b/Python/thread_os2.h index eeefe0376002..a18ce6fd6c7a 100644 --- a/Python/thread_os2.h +++ b/Python/thread_os2.h @@ -14,6 +14,10 @@ long PyThread_get_thread_ident(void); #endif +#if !defined(THREAD_STACK_SIZE) +#define THREAD_STACK_SIZE 0x10000 +#endif + /* * Initialization of the C package, should not be needed. */ @@ -31,7 +35,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg) int aThread; int success = 0; - aThread = _beginthread(func,NULL,65536,arg); + aThread = _beginthread(func, NULL, THREAD_STACK_SIZE, arg); if (aThread == -1) { success = -1;