MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / FileLock

Method FileLock

src/util/fs.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45FileLock::FileLock(const fs::path& file)
46{
47 fd = open(file.c_str(), O_RDWR);
48 if (fd == -1) {
49 reason = GetErrorReason();
50 }
51}
52
53FileLock::~FileLock()
54{

Callers

nothing calls this directly

Calls 1

GetErrorReasonFunction · 0.85

Tested by

no test coverage detected