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

Method LockFunctionScope

Source/cmFileLockPool.cxx:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38cmFileLockResult cmFileLockPool::LockFunctionScope(std::string const& filename,
39 unsigned long timeoutSec)
40{
41 if (this->IsAlreadyLocked(filename)) {
42 return cmFileLockResult::MakeAlreadyLocked();
43 }
44 if (this->FunctionScopes.empty()) {
45 return cmFileLockResult::MakeNoFunction();
46 }
47 return this->FunctionScopes.back().Lock(filename, timeoutSec);
48}
49
50cmFileLockResult cmFileLockPool::LockFileScope(std::string const& filename,
51 unsigned long timeoutSec)

Callers 1

HandleLockCommandFunction · 0.80

Calls 4

IsAlreadyLockedMethod · 0.95
emptyMethod · 0.45
LockMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected