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:
parent
4c44a213a3
commit
7c1e5b3345
2 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue