Doctrine\OXM\Storage\FileSystemStorage::lock PHP Method

lock() private method

private lock ( string $filename, Resource $handle ) : boolean
$filename string
$handle Resource
return boolean
    private function lock($filename, $handle)
    {
        if (!isset($this->fileLocks[$filename])) {
            $success = flock($handle, LOCK_EX);
            if ($success) {
                $this->fileLocks[$filename] = $handle;
            }
            return $success;
        }
    }