malkusch\lock\mutex\SpinlockMutex::acquire PHP Method

acquire() abstract protected method

Tries to acquire a lock.
abstract protected acquire ( string $key, integer $expire ) : boolean
$key string The lock key.
$expire integer The timeout in seconds when a lock expires.
return boolean True, if the lock could be acquired.
    protected abstract function acquire($key, $expire);