Beispiel #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
Beispiel #2
0
 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)
Beispiel #3
0
 def __init__(self):
     """Constructor."""
     Event.__init__(self)
Beispiel #4
0
 def __init__(self):
     Event.__init__(self)
     self.reply = None
Beispiel #5
0
 def __init__(self):
     Thread.__init__(self, daemon=True)
     Event.__init__(self)
     self.start()
Beispiel #6
0
 def __init__(self):
     Event.__init__(self)
     self.char = False
     self.control = False