(self, n=1)
Release a semaphore, incrementing the internal counter by one or more.

        When the counter is zero on entry and another thread is waiting for it
        to become larger than zero again, wake up that thread.
Release a semaphore, incrementing the internal counter by one or more.
Release a semaphore incrementing the internal counter by one or more .
def release(self, n=1):
        """Release a semaphore, incrementing the internal counter by one or more.

        When the counter is zero on entry and another thread is waiting for it
        to become larger than zero again, wake up that thread.

        """
        if n < 1:
            raise ValueError('n must be one or more')
        with self._cond:
            self._value += n
            for i in range(n):
                self._cond.notify()
def release ( self , n = 1 ) : if n < 1 : raise ValueError ( 'n must be one or more' ) with self . _cond : self . _value += n for i in range ( n ) : self . _cond . notify ( )