]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111964: Add _PyRWMutex a "readers-writer" lock (gh-112859)
authorSam Gross <colesbury@gmail.com>
Sat, 16 Dec 2023 01:56:55 +0000 (20:56 -0500)
committerGitHub <noreply@github.com>
Sat, 16 Dec 2023 01:56:55 +0000 (18:56 -0700)
commit5ae75e1be24bd6b031a68040cfddb71732461f67
treef1622a3770208d5cbd53f5665acc89c0bdda1e7c
parent40574da0196c7e51e1886f6ff9ed26447622ae58
gh-111964: Add _PyRWMutex a "readers-writer" lock (gh-112859)

This adds `_PyRWMutex`, a "readers-writer" lock, which wil be used to
serialize global stop-the-world pauses with per-interpreter pauses.
Include/internal/pycore_lock.h
Modules/_testinternalcapi/test_lock.c
Python/lock.c