MCPcopy Create free account
hub / github.com/Kitware/CMake / LockIndexing

Method LockIndexing

Source/cmInstrumentation.cxx:880–885  ·  view source on GitHub ↗

Prevent multiple index processes from claiming snippets simultaneously

Source from the content-addressed store, hash-verified

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

Callers 1

CollectTimingDataMethod · 0.95

Calls 1

AcquireLockMethod · 0.95

Tested by

no test coverage detected