mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
gh-112050: Make collections.deque thread-safe in free-threaded builds (#113830)
Use critical sections to make deque methods that operate on mutable state thread-safe when the GIL is disabled. This is mostly accomplished by using the @critical_section Argument Clinic directive, though there are a few places where this was not possible and critical sections had to be manually acquired/released.
This commit is contained in:
parent
474204765b
commit
dc978f6ab6
4 changed files with 338 additions and 61 deletions
|
|
@ -0,0 +1 @@
|
|||
Make methods on :class:`collections.deque` thread-safe when the GIL is disabled.
|
||||
Loading…
Add table
Add a link
Reference in a new issue