summaryrefslogtreecommitdiffstats
path: root/Python/thread_nt.h
diff options
context:
space:
mode:
authorMasayuki Yamamoto <ma3yuki.8mamo10@gmail.com>2017-07-03 11:34:38 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-07-03 11:34:38 (GMT)
commitaa0aa0492c5fffe750a26d2ab13737a1a6d7d63c (patch)
tree87bcaadbc9147425eb272fd42b1166ec6aa0ccbf /Python/thread_nt.h
parent5e87592fd12e0b7c41edc11d4885ed7298d5063b (diff)
downloadcpython-aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c.zip
cpython-aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c.tar.gz
cpython-aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c.tar.bz2
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
Diffstat (limited to 'Python/thread_nt.h')
-rw-r--r--Python/thread_nt.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/thread_nt.h b/Python/thread_nt.h
index 8158ff8..47eb4b6 100644
--- a/Python/thread_nt.h
+++ b/Python/thread_nt.h
@@ -348,10 +348,6 @@ _pythread_nt_set_stacksize(size_t size)
#define THREAD_SET_STACKSIZE(x) _pythread_nt_set_stacksize(x)
-/* use native Windows TLS functions */
-#define Py_HAVE_NATIVE_TLS
-
-#ifdef Py_HAVE_NATIVE_TLS
int
PyThread_create_key(void)
{
@@ -408,5 +404,3 @@ PyThread_delete_key_value(int key)
void
PyThread_ReInitTLS(void)
{}
-
-#endif