예제 #1
0
        def __init__(self, shared_condition):
            """
            Construct an event.

            :param shared_condition: shared condition varaible.
            :type shared_condition: threading.Condition
            """
            Event.__init__(self)
            self._shared_cond = shared_condition
예제 #2
0
파일: spectro.py 프로젝트: vigoux/CALOA
 def __init__(self):
     """
     Inits self.
     self.c_callback is the real C-like callback function.
     """
     Event.__init__(self)
     Queue.__init__(self)
     self.c_callback = \
         ctypes.WINFUNCTYPE(ctypes.c_void_p, ctypes.POINTER(ctypes.c_int),
                            ctypes.POINTER(ctypes.c_int))(self.Callbackfunc)
예제 #3
0
 def __init__(self):
     """Constructor."""
     Event.__init__(self)
예제 #4
0
파일: tools.py 프로젝트: filipek92/pymqttsn
 def __init__(self):
     Event.__init__(self)
     self.reply = None
예제 #5
0
 def __init__(self):
     Thread.__init__(self, daemon=True)
     Event.__init__(self)
     self.start()
예제 #6
0
 def __init__(self):
     Event.__init__(self)
     self.char = False
     self.control = False