summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-08 23:47:50 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-08 23:47:50 +0200
commitaae9ecd9c079903bd0736541d806d07878b2b9c6 (patch)
tree5e3604829163007bf1405a2d46e57e0898105984 /Python/thread.c
parentea177211de1d338f04a2749b8d9b2a75b04b7e3a (diff)
downloadcpython-aae9ecd9c079903bd0736541d806d07878b2b9c6.tar.gz
Issue #11863: Remove support for legacy systems deprecated in Python 3.2
(following PEP 11). These systems are systems using Mach C Threads, SunOS lightweight processes, GNU pth threads and IRIX threads.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/Python/thread.c b/Python/thread.c
index c7d17d60e9..e55d34244e 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -26,18 +26,6 @@
#ifndef _POSIX_THREADS
-#ifdef __sgi
-#define SGI_THREADS
-#endif
-
-#ifdef HAVE_THREAD_H
-#define SOLARIS_THREADS
-#endif
-
-#if defined(sun) && !defined(SOLARIS_THREADS)
-#define SUN_LWP
-#endif
-
/* Check if we're running on HP-UX and _SC_THREADS is defined. If so, then
enough of the Posix threads package is implemented to support python
threads.
@@ -93,37 +81,11 @@ PyThread_init_thread(void)
or the size specified by the THREAD_STACK_SIZE macro. */
static size_t _pythread_stacksize = 0;
-#ifdef SGI_THREADS
-#error SGI Irix threads are now unsupported, and code will be removed in 3.3.
-#include "thread_sgi.h"
-#endif
-
-#ifdef SOLARIS_THREADS
-#define PYTHREAD_NAME "solaris"
-#include "thread_solaris.h"
-#endif
-
-#ifdef SUN_LWP
-#error SunOS lightweight processes are now unsupported, and code will be removed in 3.3.
-#include "thread_lwp.h"
-#endif
-
-#ifdef HAVE_PTH
-#error GNU pth threads are now unsupported, and code will be removed in 3.3.
-#include "thread_pth.h"
-#undef _POSIX_THREADS
-#endif
-
#ifdef _POSIX_THREADS
#define PYTHREAD_NAME "pthread"
#include "thread_pthread.h"
#endif
-#ifdef C_THREADS
-#error Mach C Threads are now unsupported, and code will be removed in 3.3.
-#include "thread_cthread.h"
-#endif
-
#ifdef NT_THREADS
#define PYTHREAD_NAME "nt"
#include "thread_nt.h"
@@ -134,11 +96,6 @@ static size_t _pythread_stacksize = 0;
#include "thread_os2.h"
#endif
-#ifdef PLAN9_THREADS
-#define PYTHREAD_NAME "plan9"
-#include "thread_plan9.h"
-#endif
-
/*
#ifdef FOOBAR_THREADS
#include "thread_foobar.h"