Thread-local storage support — Python 3.14.7 documentation

docs.python.org

Tin mới

Synchronization primitives

Multiple interpreters in a Python process

Python Module Index

3.14.7 Documentation

Python/C API reference manual

Thread-specific storage API¶

The Python interpreter provides low-level support for thread-local storage (TLS) which wraps the underlying native TLS implementation to support the Python-level thread-local storage API (threading.local). The CPython C

Thread-specific storage API¶

The Python interpreter provides low-level support for thread-local storage (TLS) which wraps the underlying native TLS implementation to support the Python-level thread-local storage API (threading.local). The CPython C

Dynamic allocation¶

Dynamic allocation of the Py_tss_t, required in extension modules built with Py_LIMITED_API, where static allocation of this type is not possible due to its implementation being opaque at build time.