Home
last modified time | relevance | path

Searched refs:_selector (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython3/Lib/asyncio/
Dselector_events.py66 self._selector = selector
112 if self._selector is not None:
113 self._selector.close()
114 self._selector = None
264 key = self._selector.get_key(fd)
266 self._selector.register(fd, selectors.EVENT_READ,
270 self._selector.modify(fd, mask | selectors.EVENT_READ,
279 key = self._selector.get_key(fd)
286 self._selector.unregister(fd)
288 self._selector.modify(fd, mask, (None, writer))
[all …]
Dproactor_events.py385 self._selector = proactor # convenient alias
438 self._selector = None
Dtest_utils.py299 self._selector = TestSelector()
Dbase_events.py1370 event_list = self._selector.select(timeout)
1389 event_list = self._selector.select(timeout)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_selector_events.py125 self.loop._selector.close()
126 self.loop._selector = selector = mock.Mock()
131 self.assertIsNone(self.loop._selector)
155 self.loop._selector.close()
156 self.loop._selector = None
158 self.assertIsNone(self.loop._selector)
515 self.loop._selector.get_key.side_effect = KeyError
519 self.assertTrue(self.loop._selector.register.called)
520 fd, mask, (r, w) = self.loop._selector.register.call_args[0]
529 self.loop._selector.get_key.return_value = selectors.SelectorKey(
[all …]
Dtest_pep492.py23 self.loop._selector = mock.Mock()
24 self.loop._selector.select.return_value = ()
Dtest_base_events.py166 self.loop._selector = mock.Mock()
167 self.loop._selector.select.return_value = ()
390 t = self.loop._selector.select.call_args[0][0]
413 self.loop._selector.select = slow_select
422 self.loop._selector.select = fast_select
702 _selector = mock.Mock() variable in BaseEventLoopTests.test_default_exc_handler_broken.Loop
891 self.loop._selector.select.return_value = ()
894 self.loop._selector.select.return_value = (event_sentinel,)
923 self.loop._selector.select.assert_called_once_with(0)
Dtest_events.py1782 'selector': self.loop._selector.__class__.__name__})
/external/python/cpython3/Lib/
Dselectors.py63 self._selector = selector
66 return len(self._selector._fd_to_key)
70 fd = self._selector._fileobj_lookup(fileobj)
71 return self._selector._fd_to_key[fd]
76 return iter(self._selector._fd_to_key)
/external/skqp/tools/shape/
Dusing_skia_and_harfbuzz.cpp34 BaseOption(std::string _selector, std::string _description) in BaseOption()
35 : selector(_selector), description(_description) {} in BaseOption()
/external/skia/tools/shape/
Dusing_skia_and_harfbuzz.cpp34 BaseOption(std::string _selector, std::string _description) in BaseOption()
35 : selector(_selector), description(_description) {} in BaseOption()
/external/llvm/docs/
DCodeGenerator.rst923 .. _selector: