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

Method LockFileScope

Source/cmFileLockPool.cxx:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50cmFileLockResult cmFileLockPool::LockFileScope(std::string const& filename,
51 unsigned long timeoutSec)
52{
53 if (this->IsAlreadyLocked(filename)) {
54 return cmFileLockResult::MakeAlreadyLocked();
55 }
56 assert(!this->FileScopes.empty());
57 return this->FileScopes.back().Lock(filename, timeoutSec);
58}
59
60cmFileLockResult cmFileLockPool::LockProcessScope(std::string const& filename,
61 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