Skip to content

Commit 0169478

Browse files
committed
Use correct example for safe-shared level
1 parent 3ba0282 commit 0169478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/threadsafety.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ object. The implementation uses internal synchronization (such as
7878
:ref:`critical sections <python-critical-section-api>`) to protect shared
7979
mutable state, so callers do not need to supply their own locking.
8080

81-
Example: :c:func:`PyMutex_Lock` can be called from multiple threads on the
82-
same :c:type:`PyMutex` - it uses internal synchronization to serialize
81+
Example: :c:func:`PyList_GetItemRef` can be called from multiple threads on the
82+
same :c:type:`PyListObject` - it uses internal synchronization to serialize
8383
access.
8484

8585
.. _threadsafety-level-atomic:

0 commit comments

Comments
 (0)