mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +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()
|
Goal::Co DerivationBuildingGoal::tryToBuild()
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Activity that denotes waiting for a lock.
|
||||||
|
*/
|
||||||
|
std::unique_ptr<Activity> actLock;
|
||||||
|
|
||||||
bool useHook;
|
bool useHook;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
|
||||||
|
|
@ -92,11 +92,6 @@ struct DerivationBuildingGoal : public Goal
|
||||||
|
|
||||||
std::unique_ptr<Activity> act;
|
std::unique_ptr<Activity> act;
|
||||||
|
|
||||||
/**
|
|
||||||
* Activity that denotes waiting for a lock.
|
|
||||||
*/
|
|
||||||
std::unique_ptr<Activity> actLock;
|
|
||||||
|
|
||||||
std::map<ActivityId, Activity> builderActivities;
|
std::map<ActivityId, Activity> builderActivities;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue