from _emerge.PollConstants import PollConstants
from _emerge.PollSelectAdapter import PollSelectAdapter
-class EventLoop(PollConstants):
+class EventLoop(object):
supports_multiprocessing = True
self._poll_obj = create_poll_instance()
self._polling = False
+ self.IO_ERR = PollConstants.POLLERR
+ self.IO_HUP = PollConstants.POLLHUP
+ self.IO_IN = PollConstants.POLLIN
+ self.IO_NVAL = PollConstants.POLLNVAL
+ self.IO_OUT = PollConstants.POLLOUT
+ self.IO_PRI = PollConstants.POLLPRI
+
def _poll(self, timeout=None):
if self._polling:
return
supports_multiprocessing = False
def __init__(self):
+ self.IO_ERR = glib.IO_ERR
+ self.IO_HUP = glib.IO_HUP
+ self.IO_IN = glib.IO_IN
+ self.IO_NVAL = glib.IO_NVAL
+ self.IO_OUT = glib.IO_OUT
+ self.IO_PRI = glib.IO_PRI
self.iteration = glib.main_context_default().iteration
self.idle_add = glib.idle_add
self.io_add_watch = glib.io_add_watch