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

Method IsAlreadyLocked

Source/cmFileLockPool.cxx:88–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool cmFileLockPool::IsAlreadyLocked(std::string const& filename) const
89{
90 for (auto const& funcScope : this->FunctionScopes) {
91 bool const result = funcScope.IsAlreadyLocked(filename);
92 if (result) {
93 return true;
94 }
95 }
96
97 for (auto const& fileScope : this->FileScopes) {
98 bool const result = fileScope.IsAlreadyLocked(filename);
99 if (result) {
100 return true;
101 }
102 }
103
104 return this->ProcessScope.IsAlreadyLocked(filename);
105}
106
107cmFileLockPool::ScopePool::ScopePool() = default;
108

Callers 3

LockFunctionScopeMethod · 0.95
LockFileScopeMethod · 0.95
LockProcessScopeMethod · 0.95

Calls 3

IsLockedMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected