LLVM  14.0.0git
Public Member Functions | Friends | List of all members
llvm::sys::fs::FileLocker Class Reference

RAII class that facilitates file locking. More...

#include "llvm/Support/FileSystem.h"

Public Member Functions

 FileLocker (const FileLocker &L)=delete
 
 FileLocker (FileLocker &&L)
 
 ~FileLocker ()
 
FileLockeroperator= (FileLocker &&L)
 
FileLockeroperator= (const FileLocker &L)=delete
 
std::error_code unlock ()
 

Friends

class llvm::raw_fd_ostream
 

Detailed Description

RAII class that facilitates file locking.

Definition at line 1201 of file FileSystem.h.

Constructor & Destructor Documentation

◆ FileLocker() [1/2]

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

◆ FileLocker() [2/2]

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

Definition at line 1208 of file FileSystem.h.

◆ ~FileLocker()

llvm::sys::fs::FileLocker::~FileLocker ( )
inline

Definition at line 1209 of file FileSystem.h.

References llvm::sys::fs::unlockFile().

Member Function Documentation

◆ operator=() [1/2]

FileLocker& llvm::sys::fs::FileLocker::operator= ( const FileLocker L)
delete

◆ operator=() [2/2]

FileLocker& llvm::sys::fs::FileLocker::operator= ( FileLocker &&  L)
inline

Definition at line 1213 of file FileSystem.h.

◆ unlock()

std::error_code llvm::sys::fs::FileLocker::unlock ( )
inline

Definition at line 1219 of file FileSystem.h.

References llvm::sys::fs::unlockFile().

Friends And Related Function Documentation

◆ llvm::raw_fd_ostream

friend class llvm::raw_fd_ostream
friend

Definition at line 1204 of file FileSystem.h.


The documentation for this class was generated from the following file: