]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (#122138)
authorSam Gross <colesbury@gmail.com>
Tue, 23 Jul 2024 08:47:14 +0000 (04:47 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Jul 2024 08:47:14 +0000 (14:17 +0530)
commit47847aa8ef66837f984fc4e30187d88f8d8ab201
tree85aa42e921054c29a42df93f413556540ef004c3
parenta9bb3c7b3bd8ba90de87d03cd4d614dca764b116
gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (#122138)

Use `PyDict_SetDefaultRef` to set the current task in a single operation
under the dictionary's lock.
Modules/_asynciomodule.c