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

Method LockProcessScope

Source/cmFileLockPool.cxx:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60cmFileLockResult cmFileLockPool::LockProcessScope(std::string const& filename,
61 unsigned long timeoutSec)
62{
63 if (this->IsAlreadyLocked(filename)) {
64 return cmFileLockResult::MakeAlreadyLocked();
65 }
66 return this->ProcessScope.Lock(filename, timeoutSec);
67}
68
69cmFileLockResult cmFileLockPool::Release(std::string const& filename)
70{

Callers 1

HandleLockCommandFunction · 0.80

Calls 2

IsAlreadyLockedMethod · 0.95
LockMethod · 0.45

Tested by

no test coverage detected