]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport: make thread stack size compile-time tunable on OS/2
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Mon, 17 Jan 2005 12:21:28 +0000 (12:21 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Mon, 17 Jan 2005 12:21:28 +0000 (12:21 +0000)
Python/thread_os2.h

index eeefe03760029a12a591ae9947d7bd02eef6835f..a18ce6fd6c7a2b73319e6068d05a22f5a097d5d3 100644 (file)
 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;