summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/proactor_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-31 15:26:38 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-31 15:26:38 (GMT)
commit1506df265553aae4cdcda3320e1634bf1cd2476f (patch)
treeef62488b9c99dfccba42211573b8e0b5a2b0d6d5 /Lib/asyncio/proactor_events.py
parentf2e1768bc17d199f2ad81d7786e0150585c7cdb4 (diff)
downloadcpython-1506df265553aae4cdcda3320e1634bf1cd2476f.zip
cpython-1506df265553aae4cdcda3320e1634bf1cd2476f.tar.gz
cpython-1506df265553aae4cdcda3320e1634bf1cd2476f.tar.bz2
Issue #20455: Add a resolution attribute to IocpProactor (1 ms)
Diffstat (limited to 'Lib/asyncio/proactor_events.py')
-rw-r--r--Lib/asyncio/proactor_events.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py
index f0c08c2..b6b3be2 100644
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -354,6 +354,7 @@ class BaseProactorEventLoop(base_events.BaseEventLoop):
self._selector = proactor # convenient alias
self._self_reading_future = None
self._accept_futures = {} # socket file descriptor => Future
+ self._granularity = max(proactor.resolution, self._granularity)
proactor.set_loop(self)
self._make_self_pipe()