Prevent multiple index processes from claiming snippets simultaneously
| 878 | |
| 879 | // Prevent multiple index processes from claiming snippets simultaneously |
| 880 | bool cmInstrumentation::LockIndexing() |
| 881 | { |
| 882 | return this->AcquireLock(".index.lock", this->indexLock, |
| 883 | // -1 = no timeout |
| 884 | static_cast<unsigned long>(-1)); |
| 885 | } |
| 886 | |
| 887 | bool cmInstrumentation::AcquireLock(std::string const& lock_file, |
| 888 | cmFileLock& lock, unsigned long timeout) |
no test coverage detected