]> granicus.if.org Git - python/commit
bpo-30832: Remove own implementation for thread-local storage (#2537)
authorMasayuki Yamamoto <ma3yuki.8mamo10@gmail.com>
Mon, 3 Jul 2017 11:34:38 +0000 (20:34 +0900)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 3 Jul 2017 11:34:38 +0000 (13:34 +0200)
commitaa0aa0492c5fffe750a26d2ab13737a1a6d7d63c
tree87bcaadbc9147425eb272fd42b1166ec6aa0ccbf
parent5e87592fd12e0b7c41edc11d4885ed7298d5063b
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
Misc/NEWS.d/next/C API/2017-07-03-17-25-40.bpo-30832.PcTAEP.rst [new file with mode: 0644]
Python/thread.c
Python/thread_nt.h
Python/thread_pthread.h