| 67 | } |
| 68 | |
| 69 | cmFileLockResult cmFileLockPool::Release(std::string const& filename) |
| 70 | { |
| 71 | for (auto& funcScope : this->FunctionScopes) { |
| 72 | cmFileLockResult const result = funcScope.Release(filename); |
| 73 | if (!result.IsOk()) { |
| 74 | return result; |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | for (auto& fileScope : this->FileScopes) { |
| 79 | cmFileLockResult const result = fileScope.Release(filename); |
| 80 | if (!result.IsOk()) { |
| 81 | return result; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | return this->ProcessScope.Release(filename); |
| 86 | } |
| 87 | |
| 88 | bool cmFileLockPool::IsAlreadyLocked(std::string const& filename) const |
| 89 | { |