Bitcoin Core 28.99.0
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 223 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 49 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 232 of file fs.h.

◆ TryLock()

bool fsbridge::FileLock::TryLock ( )

Definition at line 64 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 237 of file fs.h.

◆ reason

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

Definition at line 235 of file fs.h.


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