Bitcoin Core  0.18.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
fsbridge::FileLock Class Reference

#include <fs.h>

Public Member Functions

 FileLock ()=delete
 
 FileLock (const FileLock &)=delete
 
 FileLock (FileLock &&)=delete
 
 FileLock (const fs::path &file)
 
 ~FileLock ()
 
bool TryLock ()
 
std::string GetReason ()
 

Private Attributes

std::string reason
 
int fd = -1
 

Detailed Description

Definition at line 25 of file fs.h.

Constructor & Destructor Documentation

◆ FileLock() [1/4]

fsbridge::FileLock::FileLock ( )
delete

◆ FileLock() [2/4]

fsbridge::FileLock::FileLock ( const FileLock )
delete

◆ FileLock() [3/4]

fsbridge::FileLock::FileLock ( FileLock &&  )
delete

◆ FileLock() [4/4]

fsbridge::FileLock::FileLock ( const fs::path &  file)
explicit

Definition at line 31 of file fs.cpp.

◆ ~FileLock()

fsbridge::FileLock::~FileLock ( )

Definition at line 39 of file fs.cpp.

Member Function Documentation

◆ GetReason()

std::string fsbridge::FileLock::GetReason ( )
inline

Definition at line 34 of file fs.h.

◆ TryLock()

bool fsbridge::FileLock::TryLock ( )

Definition at line 46 of file fs.cpp.

Member Data Documentation

◆ fd

int fsbridge::FileLock::fd = -1
private

Definition at line 39 of file fs.h.

◆ reason

std::string fsbridge::FileLock::reason
private

Definition at line 37 of file fs.h.


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