0.5.1: fix stop()
This commit is contained in:
@@ -206,6 +206,12 @@ class EventLoop(asyncio.SelectorEventLoop):
|
|||||||
if eventlet.patcher.is_monkey_patched('thread'):
|
if eventlet.patcher.is_monkey_patched('thread'):
|
||||||
self._default_executor = _TpoolExecutor(self)
|
self._default_executor = _TpoolExecutor(self)
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
super(EventLoop, self).stop()
|
||||||
|
# selector.select() is running: write into the self-pipe to wake up
|
||||||
|
# the selector
|
||||||
|
self._write_to_self()
|
||||||
|
|
||||||
def call_soon(self, callback, *args):
|
def call_soon(self, callback, *args):
|
||||||
handle = super(EventLoop, self).call_soon(callback, *args)
|
handle = super(EventLoop, self).call_soon(callback, *args)
|
||||||
if self._selector is not None and self._selector._event:
|
if self._selector is not None and self._selector._event:
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
2016-02-22: Version 0.5.1
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
* Fix EventLoop.stop() for the new semantics of stop() introduced
|
||||||
|
in Python 3.4.4 and Python 3.5.1. The method now writes into the self-pipe
|
||||||
|
to wake-up the event loop. Otherwise, the stop() may not be taken in account
|
||||||
|
immediatly, and even block forever.
|
||||||
|
|
||||||
2016-02-22: Version 0.5
|
2016-02-22: Version 0.5
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ copyright = u'2014, Victor Stinner'
|
|||||||
#
|
#
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
version = release = '0.6'
|
version = release = '0.5.1'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -55,7 +55,7 @@ with open("README") as fp:
|
|||||||
|
|
||||||
install_options = {
|
install_options = {
|
||||||
"name": "aioeventlet",
|
"name": "aioeventlet",
|
||||||
"version": "0.6",
|
"version": "0.5.1",
|
||||||
"license": "Apache License 2.0",
|
"license": "Apache License 2.0",
|
||||||
"author": 'Victor Stinner',
|
"author": 'Victor Stinner',
|
||||||
"author_email": 'victor.stinner@gmail.com',
|
"author_email": 'victor.stinner@gmail.com',
|
||||||
|
|||||||
Reference in New Issue
Block a user