]> git.ipfire.org Git - thirdparty/tornado.git/commit
asyncio: Rework AddThreadSelectorEventLoop
authorBen Darnell <ben@cockroachlabs.com>
Mon, 6 Jul 2020 00:48:16 +0000 (20:48 -0400)
committerBen Darnell <ben@bendarnell.com>
Wed, 2 Sep 2020 15:10:13 +0000 (11:10 -0400)
commit5cfe2fc2223fc2b3f6f26d5e6d59167d9b46fdc5
treeb007b66f4f4c3d6e10a50a29418980bca27e50e6
parent89d9c417b5d7a16c1d9c5a0537b3a51ab88f7794
asyncio: Rework AddThreadSelectorEventLoop

Running a whole event loop on the other thread leads to tricky
synchronization problems. Instead, keep as much as possible on the
main thread, and call out to a second thread only for the blocking
select system call itself.
tornado/platform/asyncio.py
tornado/test/ioloop_test.py
tornado/test/iostream_test.py