yii\mutex\Mutex::acquireLock PHP Method

acquireLock() abstract protected method

This method should be extended by a concrete Mutex implementations. Acquires lock by name.
abstract protected acquireLock ( string $name, integer $timeout ) : boolean
$name string of the lock to be acquired.
$timeout integer time to wait for the lock to be released.
return boolean acquiring result.
    protected abstract function acquireLock($name, $timeout = 0);