MCPcopy Index your code
hub / github.com/python/cpython / _register_with_iocp

Method _register_with_iocp

Lib/asyncio/windows_events.py:705–713  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

703 return f
704
705 def _register_with_iocp(self, obj):
706 # To get notifications of finished ops on this objects sent to the
707 # completion port, were must register the handle.
708 if obj not in self._registered:
709 self._registered.add(obj)
710 _overlapped.CreateIoCompletionPort(obj.fileno(), self._iocp, 0, 0)
711 # XXX We could also use SetFileCompletionNotificationModes()
712 # to avoid sending notifications to completion port of ops
713 # that succeed immediately.
714
715 def _register(self, ov, obj, callback):
716 self._check_closed()

Callers 10

recvMethod · 0.95
recv_intoMethod · 0.95
recvfromMethod · 0.95
recvfrom_intoMethod · 0.95
sendtoMethod · 0.95
sendMethod · 0.95
acceptMethod · 0.95
connectMethod · 0.95
sendfileMethod · 0.95
accept_pipeMethod · 0.95

Calls 2

addMethod · 0.45
filenoMethod · 0.45

Tested by

no test coverage detected