NinjaMutex\Lock\FlockLock::isLocked PHP Method

isLocked() public method

Check if lock is locked
public isLocked ( string $name ) : boolean
$name string name of lock
return boolean
    public function isLocked($name)
    {
        if ($this->acquireLock($name, 0)) {
            return !$this->releaseLock($name);
        }
        return true;
    }