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;
}