]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117435: Make `SemLock` thread-safe in free-threaded build (#117436)
authorSam Gross <colesbury@gmail.com>
Thu, 4 Apr 2024 18:09:38 +0000 (14:09 -0400)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2024 18:09:38 +0000 (14:09 -0400)
commitde5ca0bf71760aad8f2b8449c89242498bff64c8
treeb50ecf16ae524ab7e181215a18f5ec7ee8d021a1
parent04697bcfaf5dd34c9312f4f405083b6d33b3511f
gh-117435: Make `SemLock` thread-safe in free-threaded build (#117436)

Use critical sections to make acquire, release, and _count thread-safe
without the GIL.
Modules/_multiprocessing/clinic/semaphore.c.h
Modules/_multiprocessing/semaphore.c