Metabor\Semaphore\LockAdapterMutex::acquireLock PHP Method

acquireLock() public method

See also: MetaborStd\Semaphore\MutexInterface::acquireLock()
public acquireLock ( )
    public function acquireLock()
    {
        if (!$this->acquired) {
            $this->acquired = $this->lockAdapter->acquireLock($this->resourceName);
        }
        return $this->acquired;
    }