Mercurial > cpython-lru_cache-weakref
diff Python/thread_os2.h @ 34433:e1a7eb832cb5 2.3
backport: make thread stack size compile-time tunable on OS/2
| author | Andrew MacIntyre <andymac@bullseye.apana.org.au> |
|---|---|
| date | Mon, 17 Jan 2005 12:21:28 +0000 |
| parents | 8e1567dbcba8 |
| children | 3ac8509437df 0b2b076e5908 a19c20c5e5c7 |
line wrap: on
line diff
--- a/Python/thread_os2.h Tue Jan 11 13:49:02 2005 +0000 +++ b/Python/thread_os2.h Mon Jan 17 12:21:28 2005 +0000 @@ -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;
