Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
50
FileLock::FileLock(const fs::path& file)
51
{
52
fd = open(file.c_str(), O_RDWR);
53
if (fd == -1) {
54
reason = GetErrorReason();
55
}
56
}
57
58
FileLock::~FileLock()
59
{
Callers
nothing calls this directly
Calls
1
GetErrorReason
Function · 0.85
Tested by
no test coverage detected