Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 206 of file fs.h.

Constructor & Destructor Documentation

◆ FileLock() [1/4]

fsbridge::FileLock::FileLock ( )
delete
Here is the caller graph for this function:

◆ FileLock() [2/4]

fsbridge::FileLock::FileLock ( const FileLock & )
delete
Here is the call graph for this function:

◆ FileLock() [3/4]

fsbridge::FileLock::FileLock ( FileLock && )
delete
Here is the call graph for this function:

◆ FileLock() [4/4]

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

Definition at line 47 of file fs.cpp.

Here is the call graph for this function:

◆ ~FileLock()

fsbridge::FileLock::~FileLock ( )

Definition at line 55 of file fs.cpp.

Member Function Documentation

◆ GetReason()

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

Definition at line 215 of file fs.h.

◆ TryLock()

bool fsbridge::FileLock::TryLock ( )

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

◆ reason

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

Definition at line 218 of file fs.h.


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