MCPcopy Create free account
hub / github.com/Kitware/CMake / Release

Method Release

Source/cmFileLockUnix.cxx:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12cmFileLock::cmFileLock() = default;
13
14cmFileLockResult cmFileLock::Release()
15{
16 if (this->Filename.empty()) {
17 return cmFileLockResult::MakeOk();
18 }
19 int const lockResult = this->LockFile(F_SETLK, F_UNLCK);
20
21 this->Filename = "";
22
23 ::close(this->File);
24 this->File = -1;
25
26 if (lockResult == 0) {
27 return cmFileLockResult::MakeOk();
28 }
29 return cmFileLockResult::MakeSystem();
30}
31
32cmFileLockResult cmFileLock::OpenFile()
33{

Callers 13

~cmFileLockMethod · 0.95
doWriteFunction · 0.45
mainFunction · 0.45
LLVMFuzzerTestOneInputFunction · 0.45
xmllite_read_tocFunction · 0.45
xml_writer_createFunction · 0.45
xml_writer_destroyFunction · 0.45
SettingsFileWriteMethod · 0.45
CollectTimingDataMethod · 0.45
SpawnBuildDaemonMethod · 0.45
~SmartCOMPtrMethod · 0.45

Calls 2

LockFileMethod · 0.95
emptyMethod · 0.45

Tested by

no test coverage detected