Bitcoin ABC 0.30.7
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 214 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 50 of file fs.cpp.

Here is the call graph for this function:

◆ ~FileLock()

fsbridge::FileLock::~FileLock ( )

Definition at line 57 of file fs.cpp.

Member Function Documentation

◆ GetReason()

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

Definition at line 222 of file fs.h.

◆ TryLock()

bool fsbridge::FileLock::TryLock ( )

Definition at line 70 of file fs.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ fd

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

Definition at line 227 of file fs.h.

◆ reason

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

Definition at line 225 of file fs.h.


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