yii\mutex\MysqlMutex::releaseLock PHP Method

releaseLock() protected method

Releases lock by given name.
See also: http://dev.mysql.com/doc/refman/5.0/en/miscellaneous-functions.html#function_release-lock
protected releaseLock ( string $name ) : boolean
$name string of the lock to be released.
return boolean release result.
    protected function releaseLock($name)
    {
        return (bool) $this->db->createCommand('SELECT RELEASE_LOCK(:name)', [':name' => $name])->queryScalar();
    }