[Python-checkins] python/dist/src/Python thread_os2.h,2.16,2.17
aimacintyre at users.sourceforge.net
aimacintyre at users.sourceforge.net
Mon Jan 17 13:16:38 CET 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4649
Modified Files:
thread_os2.h
Log Message:
make thread stack size compile-time tunable on OS/2
Index: thread_os2.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_os2.h,v
retrieving revision 2.16
retrieving revision 2.17
diff -u -d -r2.16 -r2.17
--- thread_os2.h 4 Dec 2002 12:29:37 -0000 2.16
+++ thread_os2.h 17 Jan 2005 12:16:36 -0000 2.17
@@ -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 @@
int aThread;
int success = 0;
- aThread = _beginthread(func,NULL,65536,arg);
+ aThread = _beginthread(func, NULL, THREAD_STACK_SIZE, arg);
if (aThread == -1) {
success = -1;
More information about the Python-checkins
mailing list