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

Method Lock

Source/cmFileLockPool.cxx:123–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123cmFileLockResult cmFileLockPool::ScopePool::Lock(std::string const& filename,
124 unsigned long timeoutSec)
125{
126 cmFileLock lock;
127 cmFileLockResult const result = lock.Lock(filename, timeoutSec);
128 if (result.IsOk()) {
129 this->Locks.push_back(std::move(lock));
130 return cmFileLockResult::MakeOk();
131 }
132 return result;
133}
134
135cmFileLockResult cmFileLockPool::ScopePool::Release(
136 std::string const& filename)

Callers 3

LockFunctionScopeMethod · 0.45
LockFileScopeMethod · 0.45
LockProcessScopeMethod · 0.45

Calls 3

moveFunction · 0.85
IsOkMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected