Mercurial > cpython-lru_cache-weakref
comparison Python/thread.c @ 14674:756c8c6535fe legacy-trunk
Make better use of GNU Pth -- patch by Andy Dustman.
I can't test this, so I'm just checking it in with blind faith in Andy.
I've tested that it doesn't broeak a non-Pth build on Linux.
Changes include:
- There's a --with-pth configure option.
- Instead of _GNU_PTH, we test for HAVE_PTH.
- Better signal handling.
- (The config.h.in file is regenerated in a slightly different order.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 19 Sep 2000 00:46:46 +0000 |
| parents | 6f6f965c5e2d |
| children | 457f0df46dd9 |
comparison
equal
deleted
inserted
replaced
| 14673:df8d575d967d | 14674:756c8c6535fe |
|---|---|
| 107 | 107 |
| 108 #ifdef SUN_LWP | 108 #ifdef SUN_LWP |
| 109 #include "thread_lwp.h" | 109 #include "thread_lwp.h" |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 #ifdef _GNU_PTH | 112 #ifdef HAVE_PTH |
| 113 #include "thread_pth.h" | 113 #include "thread_pth.h" |
| 114 #else | 114 #undef _POSIX_THREADS |
| 115 #endif | |
| 116 | |
| 115 #ifdef _POSIX_THREADS | 117 #ifdef _POSIX_THREADS |
| 116 #include "thread_pthread.h" | 118 #include "thread_pthread.h" |
| 117 #endif | |
| 118 #endif | 119 #endif |
| 119 | 120 |
| 120 #ifdef C_THREADS | 121 #ifdef C_THREADS |
| 121 #include "thread_cthread.h" | 122 #include "thread_cthread.h" |
| 122 #endif | 123 #endif |
