File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2294,7 +2294,7 @@ is resumed, and its locks reacquired. This means the critical section API
22942294provides weaker guarantees than traditional locks -- they are useful because
22952295their behavior is similar to the :term:`GIL`.
22962296
2297- Variants that accept :c:type:`PyMutex` instances rather than objects are also
2297+ Variants that accept :c:type:`PyMutex` pointers rather than Python objects are also
22982298available. Use these variants to start a critical section in a situation where
22992299there is no :c:type:`PyObject` -- for example, when working with a C type that
23002300does not extend or wrap :c:type:`PyObject` but still needs to call into the C
@@ -2360,7 +2360,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
23602360
23612361 On the default build, this macro expands to ``{``.
23622362
2363- .. versionadded:: 3.15
2363+ .. versionadded:: next
23642364
23652365.. c:macro:: Py_END_CRITICAL_SECTION()
23662366
@@ -2402,11 +2402,11 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24022402 PyCriticalSection2_BeginMutex(&_py_cs2, m1, m2)
24032403
24042404 Note that unlike :c:macro:`Py_BEGIN_CRITICAL_SECTION2`, there is no cast for
2405- the second and third arguments - they must be :c:type:`PyMutex` instances .
2405+ the second and third arguments - they must be :c:type:`PyMutex` pointers .
24062406
24072407 On the default build, this macro expands to ``{``.
24082408
2409- .. versionadded:: 3.15
2409+ .. versionadded:: next
24102410
24112411.. c:macro:: Py_END_CRITICAL_SECTION2()
24122412
You can’t perform that action at this time.
0 commit comments