예제 #1
0
 def __init__(self):
     """
     Initialize kqueue object, file descriptor tracking dictionaries, and the
     base class.
     """
     self._kq = kqueue()
     self._reads = {}
     self._writes = {}
     self._selectables = {}
     posixbase.PosixReactorBase.__init__(self)
예제 #2
0
파일: kqreactor.py 프로젝트: samis/blockBox
    def __init__(self):
        """
		Initialize kqueue object, file descriptor tracking dictionaries, and the
		base class.
		"""
        self._kq = kqueue()
        self._reads = {}
        self._writes = {}
        self._selectables = {}
        posixbase.PosixReactorBase.__init__(self)