mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
remove support for BSD/OS (closes bpo-31624) (#3812)
This commit is contained in:
parent
a106aec2ed
commit
288d1daada
10 changed files with 11 additions and 69 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue