SIGN IN SIGN UP

[3.13] gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (GH-122138) (#122152)

gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (GH-122138)

Use `PyDict_SetDefaultRef` to set the current task in a single operation
under the dictionary's lock.
(cherry picked from commit 47847aa8ef66837f984fc4e30187d88f8d8ab201)

Co-authored-by: Sam Gross <colesbury@gmail.com>
M
Miss Islington (bot) committed
48154e705318f1ef800c48f39984ce5896a4ee47
Parent: 4892cc0
Committed by GitHub <noreply@github.com> on 7/23/2024, 9:17:52 AM