File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -334,13 +334,13 @@ This means you cannot rely on nested critical sections to lock multiple objects
334334at once, as the inner critical section may suspend the outer ones. Instead, use
335335:c:macro: `Py_BEGIN_CRITICAL_SECTION2 ` to lock two objects simultaneously.
336336
337- Note that the locks described above are only ` PyMutex ` based locks. The
338- critical section implementation does not know about or affect other locking
337+ Note that the locks described above are only :c:type: ` ! PyMutex ` based locks.
338+ The critical section implementation does not know about or affect other locking
339339mechanisms that might be in use, like POSIX mutexes. Also note that while
340- blocking on any ` PyMutex ` causes the critical sections to be suspended, only
341- the mutexes that are part of the critical sections are released. If ` PyMutex `
342- is used without a critical section, it will not be released and therefore does
343- not get the same deadlock avoidance.
340+ blocking on any :c:type: ` ! PyMutex ` causes the critical sections to be
341+ suspended, only the mutexes that are part of the critical sections are
342+ released. If :c:type: ` !PyMutex ` is used without a critical section, it will
343+ not be released and therefore does not get the same deadlock avoidance.
344344
345345Important Considerations
346346........................
You can’t perform that action at this time.
0 commit comments