Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
(This is a revival ofgh-84702, which@vstinner worked on several years ago.)
For a per-interpreter GIL (PEP 684) we need to start storing the "current" thread state in a thread-local variable, rather than_PyRuntime.tstate_current
. There may be other benefits to the approach if we can take advantage of native compiler support (e.g. C11's__thread_local
).
Also seehttps://discuss.python.org/t/how-to-get-the-current-thread-state/22655.