| 86 | } |
| 87 | |
| 88 | bool 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 | |
| 107 | cmFileLockPool::ScopePool::ScopePool() = default; |
| 108 |
no test coverage detected