Lines Matching refs:events
56 SelectorKey.events.__doc__ = 'Events that must be waited for on this file object.'
97 def register(self, fileobj, events, data=None): argument
138 def modify(self, fileobj, events, data=None): argument
153 return self.register(fileobj, events, data)
235 def register(self, fileobj, events, data=None): argument
236 if (not events) or (events & ~(EVENT_READ | EVENT_WRITE)):
237 raise ValueError("Invalid events: {!r}".format(events))
239 key = SelectorKey(fileobj, self._fileobj_lookup(fileobj), events, data)
255 def modify(self, fileobj, events, data=None): argument
260 if events != key.events:
262 key = self.register(fileobj, events, data)
299 def register(self, fileobj, events, data=None): argument
300 key = super().register(fileobj, events, data)
301 if events & EVENT_READ:
303 if events & EVENT_WRITE:
330 events = 0
332 events |= EVENT_READ
334 events |= EVENT_WRITE
338 ready.append((key, events & key.events))
352 def register(self, fileobj, events, data=None): argument
353 key = super().register(fileobj, events, data)
355 if events & EVENT_READ:
357 if events & EVENT_WRITE:
376 def modify(self, fileobj, events, data=None): argument
383 if events != key.events:
385 if events & EVENT_READ:
387 if events & EVENT_WRITE:
399 key = key._replace(events=events, data=data)
420 events = 0
422 events |= EVENT_WRITE
424 events |= EVENT_READ
428 ready.append((key, events & key.events))
473 events = 0
475 events |= EVENT_WRITE
477 events |= EVENT_READ
481 ready.append((key, events & key.events))
517 def register(self, fileobj, events, data=None): argument
518 key = super().register(fileobj, events, data)
520 if events & EVENT_READ:
524 if events & EVENT_WRITE:
535 if key.events & EVENT_READ:
544 if key.events & EVENT_WRITE:
568 events = 0
570 events |= EVENT_READ
572 events |= EVENT_WRITE
576 ready.append((key, events & key.events))