summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-09-29 05:44:27 (GMT)
committerGitHub <noreply@github.com>2017-09-29 05:44:27 (GMT)
commit288d1daadaddf6ae35cf666138ba4b5d07449657 (patch)
tree1cfefe910f99901373d7253bf9be9c5074dee0ea /Python/thread_pthread.h
parenta106aec2ed6ba171838ca7e6ba43c4e722bbecd1 (diff)
downloadcpython-288d1daadaddf6ae35cf666138ba4b5d07449657.zip
cpython-288d1daadaddf6ae35cf666138ba4b5d07449657.tar.gz
cpython-288d1daadaddf6ae35cf666138ba4b5d07449657.tar.bz2
remove support for BSD/OS (closes bpo-31624) (#3812)
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index ea05b6f..2dcd107 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -149,25 +149,6 @@ typedef struct {
/*
* Initialization.
*/
-
-#if defined(_HAVE_BSDI)
-static
-void _noop(void)
-{
-}
-
-static void
-PyThread__init_thread(void)
-{
- /* DO AN INIT BY STARTING THE THREAD */
- static int dummy = 0;
- pthread_t thread1;
- pthread_create(&thread1, NULL, (void *) _noop, &dummy);
- pthread_join(thread1, NULL);
-}
-
-#else /* !_HAVE_BSDI */
-
static void
PyThread__init_thread(void)
{
@@ -177,8 +158,6 @@ PyThread__init_thread(void)
#endif
}
-#endif /* !_HAVE_BSDI */
-
/*
* Thread support.
*/