mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
This makes the following macros public as part of the non-limited C-API for locking a single object or two objects at once. * `Py_BEGIN_CRITICAL_SECTION(op)` / `Py_END_CRITICAL_SECTION()` * `Py_BEGIN_CRITICAL_SECTION2(a, b)` / `Py_END_CRITICAL_SECTION2()` The supporting functions and structs used by the macros are also exposed for cases where C macros are not available.
1 line
73 B
ReStructuredText
1 line
73 B
ReStructuredText
The critical section API is now public as part of the non-limited C API.
|