Visitar URL original
gh-145254: Add thread safety annotation by lysnikolaou · Pull Request #145255 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use correct example for safe-shared level
  • Loading branch information
lysnikolaou committed Mar 10, 2026
commit 016947832e3fa990cf74fa09c1f670e9d6165f7d
4 changes: 2 additions & 2 deletions Doc/library/threadsafety.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ object. The implementation uses internal synchronization (such as
:ref:`critical sections <python-critical-section-api>`) to protect shared
mutable state, so callers do not need to supply their own locking.

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

.. _threadsafety-level-atomic:
Expand Down
Loading