]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113884: Make queue.SimpleQueue thread-safe when the GIL is disabled (#114161)
authormpage <mpage@meta.com>
Tue, 23 Jan 2024 19:25:41 +0000 (11:25 -0800)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 19:25:41 +0000 (20:25 +0100)
commit925907ea362c4c014086be48625ac7dd67645cfc
tree2c6ad103f5296532d8cd8e0bcdb66623a3ad636d
parent441affc9e7f419ef0b68f734505fa2f79fe653c7
gh-113884: Make queue.SimpleQueue thread-safe when the GIL is disabled (#114161)

* use the ParkingLot API to manage waiting threads
* use Argument Clinic's critical section directive to protect queue methods
* remove unnecessary overflow check

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Misc/NEWS.d/next/Core and Builtins/2024-01-17-00-52-57.gh-issue-113884.CvEjUE.rst [new file with mode: 0644]
Modules/_queuemodule.c
Modules/clinic/_queuemodule.c.h