Ejemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     b = _BoundedSemaphore(*args, **kwargs)
     b._Semaphore__cond = _Condition(b._Semaphore__cond._Condition__lock)
     for attr in dir(b):
         if not hasattr(self, attr):
             setattr(self, attr, getattr(b, attr))
     self._b = b
Ejemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     e = _Event(*args, **kwargs)
     e._Event__cond = \
                        _Condition(e._Event__cond._Condition__lock)
     for attr in dir(e):
         if not hasattr(self, attr):
             setattr(self, attr, getattr(e, attr))
     self._e = e
Ejemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     e = _Event(*args, **kwargs)
     e._Event__cond = \
                        _Condition(e._Event__cond._Condition__lock)
     for attr in dir(e):
         if not hasattr(self, attr):
             setattr(self, attr, getattr(e, attr))
     self._e = e
Ejemplo n.º 4
0
 def __init__(self, *args, **kwargs):
     s = _Semaphore(*args, **kwargs)
     s._Semaphore__cond = \
                        _Condition(s._Semaphore__cond._Condition__lock)
     for attr in dir(s):
         if not hasattr(self, attr):
             setattr(self, attr, getattr(s, attr))
     self._s = s
Ejemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     b = _BoundedSemaphore(*args, **kwargs)
     b._Semaphore__cond = \
                        _Condition(b._Semaphore__cond._Condition__lock)
     for attr in dir(b):
         if not hasattr(self, attr):
             setattr(self, attr, getattr(b, attr))
     self._b = b
Ejemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     s = _Semaphore(*args, **kwargs)
     s._Semaphore__cond = \
                        _Condition(s._Semaphore__cond._Condition__lock)
     for attr in dir(s):
         if not hasattr(self, attr):
             setattr(self, attr, getattr(s, attr))
     self._s = s