From 288d1daadaddf6ae35cf666138ba4b5d07449657 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 28 Sep 2017 22:44:27 -0700 Subject: remove support for BSD/OS (closes bpo-31624) (#3812) --- Python/thread_pthread.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'Python/thread_pthread.h') diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index ea05b6fbcf..2dcd107c2c 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. */ -- cgit v1.2.1