]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41247: asyncio.set_running_loop() cache running loop holder (#21406)
authorTony Solomonik <tony.solomonik@gmail.com>
Thu, 9 Jul 2020 17:38:46 +0000 (20:38 +0300)
committerGitHub <noreply@github.com>
Thu, 9 Jul 2020 17:38:46 +0000 (10:38 -0700)
commit0b6169e391ce6468aad711f08ffb829362293ad5
treee4132126562959cb83310dee12320adf564c586a
parent1e66f7e102b64da5a6d69b135cf7d82708aca231
bpo-41247: asyncio.set_running_loop() cache running loop holder (#21406)

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.
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