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