(self)
return self._value == 0
Returns True if semaphore can not be acquired immediately.
Returns True if semaphore can not be acquired immediately.
Returns True if semaphore can not be acquired immediately .
def locked(self):
        """Returns True if semaphore can not be acquired immediately."""
        return self._value == 0
def locked ( self ) : return self . _value == 0