summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2005-01-17 12:19:24 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2005-01-17 12:19:24 (GMT)
commit905bb96516c82cba2234a1afcdada45bab978a00 (patch)
treebc8615c8d0a79650aa473b012a172ef53ccb639c /Python
parentbf1155cd0c76aa0af9f31b6579064dfa029cb71b (diff)
downloadcpython-905bb96516c82cba2234a1afcdada45bab978a00.zip
cpython-905bb96516c82cba2234a1afcdada45bab978a00.tar.gz
cpython-905bb96516c82cba2234a1afcdada45bab978a00.tar.bz2
make thread stack size compile-time tunable on OS/2
Diffstat (limited to 'Python')
-rw-r--r--Python/thread_os2.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/thread_os2.h b/Python/thread_os2.h
index eeefe03..a18ce6f 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;