SIGN IN SIGN UP

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.
M
mpage committed
dc978f6ab62b68c66d3b354638c310ee1cc844a6
Parent: 4742047
Committed by GitHub <noreply@github.com> on 2/15/2024, 8:22:47 AM