NinjaMutex\Lock\DirectoryLock::releaseLock PHP Method

releaseLock() public method

Release lock
public releaseLock ( string $name ) : boolean
$name string name of lock
return boolean
    public function releaseLock($name)
    {
        if (isset($this->locks[$name])) {
            rmdir($this->getDirectoryPath($name));
            unset($this->locks[$name]);
            return true;
        }
        return false;
    }