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