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

Method OpenFile

Source/cmFileLockUnix.cxx:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32cmFileLockResult cmFileLock::OpenFile()
33{
34 this->File = ::open(this->Filename.c_str(), O_RDWR);
35 if (this->File == -1) {
36 return cmFileLockResult::MakeSystem();
37 }
38 return cmFileLockResult::MakeOk();
39}
40
41cmFileLockResult cmFileLock::LockWithoutTimeout()
42{

Callers 1

LockMethod · 0.95

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected