mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
cmCTestMultiProcessHandler: Reduce repeat test property map lookups
This commit is contained in:
@@ -398,21 +398,21 @@ void cmCTestMultiProcessHandler::SetStopTimePassed()
|
|||||||
|
|
||||||
void cmCTestMultiProcessHandler::LockResources(int index)
|
void cmCTestMultiProcessHandler::LockResources(int index)
|
||||||
{
|
{
|
||||||
this->LockedResources.insert(
|
auto* properties = this->Properties[index];
|
||||||
this->Properties[index]->LockedResources.begin(),
|
this->LockedResources.insert(properties->LockedResources.begin(),
|
||||||
this->Properties[index]->LockedResources.end());
|
properties->LockedResources.end());
|
||||||
|
if (properties->RunSerial) {
|
||||||
if (this->Properties[index]->RunSerial) {
|
|
||||||
this->SerialTestRunning = true;
|
this->SerialTestRunning = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmCTestMultiProcessHandler::UnlockResources(int index)
|
void cmCTestMultiProcessHandler::UnlockResources(int index)
|
||||||
{
|
{
|
||||||
for (std::string const& i : this->Properties[index]->LockedResources) {
|
auto* properties = this->Properties[index];
|
||||||
|
for (std::string const& i : properties->LockedResources) {
|
||||||
this->LockedResources.erase(i);
|
this->LockedResources.erase(i);
|
||||||
}
|
}
|
||||||
if (this->Properties[index]->RunSerial) {
|
if (properties->RunSerial) {
|
||||||
this->SerialTestRunning = false;
|
this->SerialTestRunning = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user