1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

In DerivationBuildingGoal Demote actLock to local variable

It doesn't need to be a field any more, because we just use it with two
loops.
This commit is contained in:
John Ericson 2025-08-29 14:02:01 -04:00
parent 4c44a213a3
commit 7c1e5b3345
2 changed files with 5 additions and 5 deletions

View file

@ -470,6 +470,11 @@ void DerivationBuildingGoal::started()
Goal::Co DerivationBuildingGoal::tryToBuild()
{
/**
* Activity that denotes waiting for a lock.
*/
std::unique_ptr<Activity> actLock;
bool useHook;
while (true) {

View file

@ -92,11 +92,6 @@ struct DerivationBuildingGoal : public Goal
std::unique_ptr<Activity> act;
/**
* Activity that denotes waiting for a lock.
*/
std::unique_ptr<Activity> actLock;
std::map<ActivityId, Activity> builderActivities;
/**