]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41247: asyncio.set_running_loop() cache running loop holder (GH-21401)
authorTony Solomonik <tony.solomonik@gmail.com>
Wed, 8 Jul 2020 19:27:31 +0000 (22:27 +0300)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2020 19:27:31 +0000 (12:27 -0700)
commit529f42645d38b6b0075f256814dfb3d220ac7d92
tree765b4254eb07900432fa71c28e6cac41e8f5bcb9
parentb26a0db8ea2de3a8a8e4b40e69fc8642c7d7cb68
bpo-41247: asyncio.set_running_loop() cache running loop holder (GH-21401)

The running loop holder cache variable was always set to NULL when
calling set_running_loop.

Now set_running_loop saves the newly created running loop holder in the
cache variable for faster access in get_running_loop.

Automerge-Triggered-By: @1st1
Misc/NEWS.d/next/Core and Builtins/2020-07-08-22-03-54.bpo-41247.PndYIk.rst [new file with mode: 0644]
Modules/_asynciomodule.c