Issue #20455: Add a resolution attribute to IocpProactor (1 ms)

This commit is contained in:
Victor Stinner 2014-01-31 16:26:38 +01:00
parent f2e1768bc1
commit 1506df2655
3 changed files with 4 additions and 0 deletions

View file

@ -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()