From aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c Mon Sep 17 00:00:00 2001 From: Masayuki Yamamoto Date: Mon, 3 Jul 2017 20:34:38 +0900 Subject: bpo-30832: Remove own implementation for thread-local storage (#2537) * bpo-30832: Remove own implementation for thread-local storage CPython has provided the own implementation for thread-local storage (TLS) on Python/thread.c, it's used in the case which a platform has not supplied native TLS. However, currently all supported platforms (NT and pthreads) have provided native TLS and defined the Py_HAVE_NATIVE_TLS macro with unconditional in any case. * bpo-30832: replace NT with Windows * bpo-30832: change to directive chain * bpo-30832: remove comemnt which making no sense --- Python/thread_pthread.h | 1 - 1 file changed, 1 deletion(-) (limited to 'Python/thread_pthread.h') diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 399d28c751..268dec4116 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -608,7 +608,6 @@ _pythread_pthread_set_stacksize(size_t size) #define THREAD_SET_STACKSIZE(x) _pythread_pthread_set_stacksize(x) -#define Py_HAVE_NATIVE_TLS int PyThread_create_key(void) -- cgit v1.2.1