malkusch\lock\mutex\SemaphoreMutex::lock PHP Method

lock() protected method

protected lock ( )
    protected function lock()
    {
        if (!sem_acquire($this->semaphore)) {
            throw new LockAcquireException("Failed to acquire the Semaphore.");
        }
    }