should not be used to make concurrency control decisions, as the lock
state may change immediately after the check.
- .. versionadded:: next
+ .. versionadded:: 3.14
.. _python-critical-section-api:
On the default build, this macro expands to ``{``.
- .. versionadded:: next
+ .. versionadded:: 3.14
.. c:macro:: Py_END_CRITICAL_SECTION()
On the default build, this macro expands to ``{``.
- .. versionadded:: next
+ .. versionadded:: 3.14
.. c:macro:: Py_END_CRITICAL_SECTION2()
* ``_Py_GetConfig()``: :c:func:`PyConfig_Get` and :c:func:`PyConfig_GetInt`
* ``_Py_HashBytes()``: :c:func:`Py_HashBuffer`
* ``_Py_fopen_obj()``: :c:func:`Py_fopen`
+ * ``PyMutex_IsLocked()`` : :c:func:`PyMutex_IsLocked`
The `pythoncapi-compat project`_ can be used to get most of these new
functions on Python 3.13 and older.
* Private functions promoted to public C APIs:
- * ``PyMutex_IsLocked()`` : :c:func:`PyMutex_IsLocked`
-
The |pythoncapi_compat_project| can be used to get most of these new
functions on Python 3.14 and older.