[Python-checkins] python/dist/src/Python thread_os2.h, 2.16, 2.16.14.1

aimacintyre at users.sourceforge.net aimacintyre at users.sourceforge.net
Mon Jan 17 13:21:47 CET 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5801

Modified Files:
      Tag: release23-maint
	thread_os2.h 
Log Message:
backport: 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.16.14.1
diff -u -d -r2.16 -r2.16.14.1
--- thread_os2.h	4 Dec 2002 12:29:37 -0000	2.16
+++ thread_os2.h	17 Jan 2005 12:21:28 -0000	2.16.14.1
@@ -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