Mercurial > cpython-lru_cache-weakref
comparison Python/thread.c @ 56730:6ca642d4f42f
Disable support for Irix threads
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sat, 24 Oct 2009 20:43:49 +0000 |
| parents | f5c563a7de75 |
| children | cab14be0ada1 |
comparison
equal
deleted
inserted
replaced
| 56729:f5c563a7de75 | 56730:6ca642d4f42f |
|---|---|
| 21 #include <stdio.h> | 21 #include <stdio.h> |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #include <stdlib.h> | 24 #include <stdlib.h> |
| 25 | 25 |
| 26 #ifdef __sgi | |
| 27 #ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */ | |
| 28 #undef _POSIX_THREADS | |
| 29 #endif | |
| 30 #endif | |
| 31 | |
| 32 #include "pythread.h" | 26 #include "pythread.h" |
| 33 | 27 |
| 34 #ifndef _POSIX_THREADS | 28 #ifndef _POSIX_THREADS |
| 35 | 29 |
| 36 #ifdef __sgi | 30 #ifdef __sgi |
| 99 A value of 0 means using the platform's default stack size | 93 A value of 0 means using the platform's default stack size |
| 100 or the size specified by the THREAD_STACK_SIZE macro. */ | 94 or the size specified by the THREAD_STACK_SIZE macro. */ |
| 101 static size_t _pythread_stacksize = 0; | 95 static size_t _pythread_stacksize = 0; |
| 102 | 96 |
| 103 #ifdef SGI_THREADS | 97 #ifdef SGI_THREADS |
| 98 #error SGI Irix threads are now unsupported, and code will be removed in 3.3. | |
| 104 #include "thread_sgi.h" | 99 #include "thread_sgi.h" |
| 105 #endif | 100 #endif |
| 106 | 101 |
| 107 #ifdef SOLARIS_THREADS | 102 #ifdef SOLARIS_THREADS |
| 108 #include "thread_solaris.h" | 103 #include "thread_solaris.h" |
