◐ Shell
clean mode source ↗

bpo-25658: Implement PEP 539 for Thread Specific Storage (TSS) API by ma8ma · Pull Request #1362 · python/cpython

See PEP 539 for details.

highlights of changes:

- Add Thread Specific Storage (TSS) API
- Add test for transitions of the thread key state.
- Mark deprecation to Thread Local Storage (TLS) API
- Replace codes that used TLS API with TSS API

ncoghlan

ncoghlan

Resolve conflicts:
fdaeea6 bpo-30279: Remove unused Python/thread_foobar.h (python#1473)
Resolve conflcts:
ab4413a bpo-30039: Don't run signal handlers while resuming a yield from stack (python#1081)
Resolve conflicts:
346cbd3 bpo-16500: Allow registering at-fork handlers (python#1715)
The code has been moved from Modules/signalmodule.c. (346cbd3)

@ma8ma

- overview
- the existing TLS API (without descripiton)
- the new TSS API
  - type and macro
  - dynamic allocation
  - methods
Several comments is no longer necessary by API document.
New order is along API document.

ncoghlan

@ncoghlan

ncoghlan

@ma8ma ma8ma deleted the pep539-tss-api branch

October 8, 2017 03:57

@ma8ma ma8ma mentioned this pull request

Oct 20, 2017

shaorongchen88

qwhz