NinjaMutex\Lock\FlockLock::isLocked PHP 메소드

isLocked() 공개 메소드

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