Example #1
0
    def __init__(self, settings=None, handlers=None):
        self.epoll = select.epoll()
        self._handlers = {}
        self._unprepared_handlers = {}
        self._timeout = None
        self._exists_fd = {}
        self.logger = get_logger()
        MainLoopBase.__init__(self, settings, handlers)

        return
Example #2
0
    def __init__(self, settings=None, handlers=None):
        self.epoll = select.epoll()
        self._handlers = {}
        self._unprepared_handlers = {}
        self._timeout = None
        self._exists_fd = {}
        self.logger = get_logger()
        MainLoopBase.__init__(self, settings, handlers)

        return
Example #3
0
 def __init__(self, settings=None, handlers=None, io_loop=None):
     self._handlers = {}
     self._unprepared_handlers = {}
     self.io_loop = io_loop or ioloop.IOLoop.instance()
     MainLoopBase.__init__(self, settings, handlers)
Example #4
0
 def __init__(self, settings = None, handlers = None, io_loop=None):
     self._handlers = {}
     self._unprepared_handlers = {}
     self.io_loop = io_loop or ioloop.IOLoop.instance()
     MainLoopBase.__init__(self, settings, handlers)