Start steps in order of ascending build ID

This commit is contained in:
Eelco Dolstra
2015-08-10 14:50:22 +02:00
parent 52ec971154
commit 27182c7c1d
4 changed files with 85 additions and 23 deletions

View File

@@ -112,6 +112,9 @@ struct Step
/* Point in time after which the step can be retried. */
system_time after;
/* The lowest build ID depending on this step. */
BuildID lowestBuildID{std::numeric_limits<BuildID>::max()};
};
std::atomic_bool finished{false}; // debugging
@@ -127,6 +130,9 @@ struct Step
void getDependents(Step::ptr step, std::set<Build::ptr> & builds, std::set<Step::ptr> & steps);
/* Call visitor for a step and all its dependencies. */
void visitDependencies(std::function<void(Step::ptr)> visitor, Step::ptr step);
struct Machine
{