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
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
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
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