]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-117657: Acquire a critical section around `SemLock.__{enter,exit}__` (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 May 2024 16:31:38 +0000 (18:31 +0200)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 16:31:38 +0000 (16:31 +0000)
commit62a559ac09b0451631a07d1aae76eab79af9cbbc
treeeeebd6d517cf98fdffe8ec493e59d9c2a0415c9a
parent738877a1013f1752cb67c3e6a49121be5f656c72
[3.13] gh-117657: Acquire a critical section around `SemLock.__{enter,exit}__` (GH-118812) (#118856)

These methods are purely wrappers around `Semlock.{acquire,release}`,
which expect a critical section to be held.
(cherry picked from commit c30d8e5d6c6b657817d6b342f1021676d04dd5af)

Co-authored-by: mpage <mpage@meta.com>
Modules/_multiprocessing/clinic/semaphore.c.h
Modules/_multiprocessing/semaphore.c