MCPcopy Create free account
hub / github.com/ElementsProject/elements / FileLock

Method FileLock

src/fs.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50FileLock::FileLock(const fs::path& file)
51{
52 fd = open(file.c_str(), O_RDWR);
53 if (fd == -1) {
54 reason = GetErrorReason();
55 }
56}
57
58FileLock::~FileLock()
59{

Callers

nothing calls this directly

Calls 1

GetErrorReasonFunction · 0.85

Tested by

no test coverage detected