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

Method LockWithoutTimeout

Source/cmFileLockUnix.cxx:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41cmFileLockResult cmFileLock::LockWithoutTimeout()
42{
43 if (this->LockFile(F_SETLKW, F_WRLCK) == -1) {
44 return cmFileLockResult::MakeSystem();
45 }
46 return cmFileLockResult::MakeOk();
47}
48
49cmFileLockResult cmFileLock::LockWithTimeout(unsigned long seconds)
50{

Callers 1

LockMethod · 0.95

Calls 1

LockFileMethod · 0.95

Tested by

no test coverage detected