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

Method UnlockResources

Source/CTest/cmCTestMultiProcessHandler.cxx:522–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522void cmCTestMultiProcessHandler::UnlockResources(int index)
523{
524 auto* properties = this->Properties[index];
525
526 for (auto p : properties->Affinity) {
527 this->ProcessorsAvailable.insert(p);
528 }
529 properties->Affinity.clear();
530
531 for (std::string const& i : properties->ProjectResources) {
532 this->ProjectResourcesLocked.erase(i);
533 }
534
535 if (properties->RunSerial) {
536 this->SerialTestRunning = false;
537 }
538
539 this->RunningCount -= this->GetProcessorsUsed(index);
540}
541
542inline size_t cmCTestMultiProcessHandler::GetProcessorsUsed(int test)
543{

Callers 1

FinishTestProcessMethod · 0.95

Calls 4

GetProcessorsUsedMethod · 0.95
eraseMethod · 0.80
insertMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected