hiqdev\assetpackagist\helpers\Locker::lock PHP Method

lock() public method

public lock ( )
    public function lock()
    {
        if (!$this->isLocked()) {
            if (!flock($this->getHandle(), LOCK_EX)) {
                throw new Exception('failed get lock');
            }
        }
        ++$this->_count;
    }