mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.13] Fix macro expansions in critical section docs (GH-127226) (#127229)
(cherry picked from commit 2bb7846cac)
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
This commit is contained in:
parent
24b86308f9
commit
cb270e96af
1 changed files with 2 additions and 2 deletions
|
|
@ -2420,7 +2420,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
|
|||
|
||||
{
|
||||
PyCriticalSection2 _py_cs2;
|
||||
PyCriticalSection_Begin2(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
|
||||
PyCriticalSection2_Begin(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
|
||||
|
||||
In the default build, this macro expands to ``{``.
|
||||
|
||||
|
|
@ -2432,7 +2432,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
|
|||
|
||||
In the free-threaded build, this macro expands to::
|
||||
|
||||
PyCriticalSection_End2(&_py_cs2);
|
||||
PyCriticalSection2_End(&_py_cs2);
|
||||
}
|
||||
|
||||
In the default build, this macro expands to ``}``.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue