class FileLocker

Declaration

class FileLocker { /* full declaration omitted */ };

Description

RAII class that facilitates file locking.

Declared at: llvm/include/llvm/Support/FileSystem.h:1226

Member Variables

private int FD
Locked file handle.

Method Overview

Methods

FileLocker(int FD)

Declared at: llvm/include/llvm/Support/FileSystem.h:1228

Parameters

int FD

FileLocker(const llvm::sys::fs::FileLocker& L)

Declared at: llvm/include/llvm/Support/FileSystem.h:1232

Parameters

const llvm::sys::fs::FileLocker& L

FileLocker(llvm::sys::fs::FileLocker&& L)

Declared at: llvm/include/llvm/Support/FileSystem.h:1233

Parameters

llvm::sys::fs::FileLocker&& L

std::error_code unlock()

Declared at: llvm/include/llvm/Support/FileSystem.h:1244

~FileLocker()

Declared at: llvm/include/llvm/Support/FileSystem.h:1234