| 48 | } |
| 49 | |
| 50 | cmFileLockResult cmFileLockPool::LockFileScope(std::string const& filename, |
| 51 | unsigned long timeoutSec) |
| 52 | { |
| 53 | if (this->IsAlreadyLocked(filename)) { |
| 54 | return cmFileLockResult::MakeAlreadyLocked(); |
| 55 | } |
| 56 | assert(!this->FileScopes.empty()); |
| 57 | return this->FileScopes.back().Lock(filename, timeoutSec); |
| 58 | } |
| 59 | |
| 60 | cmFileLockResult cmFileLockPool::LockProcessScope(std::string const& filename, |
| 61 | unsigned long timeoutSec) |
no test coverage detected