| 885 | } |
| 886 | |
| 887 | bool cmInstrumentation::AcquireLock(std::string const& lock_file, |
| 888 | cmFileLock& lock, unsigned long timeout) |
| 889 | { |
| 890 | std::string const lock_path = cmStrCat(this->timingDirv1, '/', lock_file); |
| 891 | if (!cmSystemTools::FileExists(lock_path)) { |
| 892 | cmSystemTools::Touch(lock_path, true); |
| 893 | } |
| 894 | return lock.Lock(lock_path, timeout).IsOk(); |
| 895 | } |
| 896 | |
| 897 | /* |
| 898 | * Always called by ctest --wait-and-collect-instrumentation in a detached |
no test coverage detected