| 36 | } |
| 37 | |
| 38 | cmFileLockResult cmFileLockPool::LockFunctionScope(std::string const& filename, |
| 39 | unsigned long timeoutSec) |
| 40 | { |
| 41 | if (this->IsAlreadyLocked(filename)) { |
| 42 | return cmFileLockResult::MakeAlreadyLocked(); |
| 43 | } |
| 44 | if (this->FunctionScopes.empty()) { |
| 45 | return cmFileLockResult::MakeNoFunction(); |
| 46 | } |
| 47 | return this->FunctionScopes.back().Lock(filename, timeoutSec); |
| 48 | } |
| 49 | |
| 50 | cmFileLockResult cmFileLockPool::LockFileScope(std::string const& filename, |
| 51 | unsigned long timeoutSec) |
no test coverage detected