| 58 | } |
| 59 | |
| 60 | cmFileLockResult cmFileLockPool::LockProcessScope(std::string const& filename, |
| 61 | unsigned long timeoutSec) |
| 62 | { |
| 63 | if (this->IsAlreadyLocked(filename)) { |
| 64 | return cmFileLockResult::MakeAlreadyLocked(); |
| 65 | } |
| 66 | return this->ProcessScope.Lock(filename, timeoutSec); |
| 67 | } |
| 68 | |
| 69 | cmFileLockResult cmFileLockPool::Release(std::string const& filename) |
| 70 | { |
no test coverage detected