gh-111964: Add _PyRWMutex a "readers-writer" lock by colesbury · Pull Request #112859 · python/cpython

added 2 commits

December 7, 2023 15:13
This adds `_PyRWMutex`, a "readers-writer" lock, which wil be used to
serialize global stop-the-world pauses with per-interpreter pauses.
Also, fix bug where `_PyRWMutex_Lock()` swapped the
return/continue conditions leading to an extra iteration of the loop.

ericsnowcurrently

ericsnowcurrently

@colesbury

Also describe _PyRWMutex using bit patterns instead of ASCII art box. This
matches how PyMutex is described.

ericsnowcurrently

@colesbury

@colesbury

@colesbury

aisk pushed a commit to aisk/cpython that referenced this pull request

Feb 11, 2024
)

This adds `_PyRWMutex`, a "readers-writer" lock, which wil be used to
serialize global stop-the-world pauses with per-interpreter pauses.

Glyphack pushed a commit to Glyphack/cpython that referenced this pull request

Sep 2, 2024
)

This adds `_PyRWMutex`, a "readers-writer" lock, which wil be used to
serialize global stop-the-world pauses with per-interpreter pauses.