diff options
Diffstat (limited to 'src/libstore/build/goal.hh')
-rw-r--r-- | src/libstore/build/goal.hh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libstore/build/goal.hh b/src/libstore/build/goal.hh index 3d487f6da..83f52927e 100644 --- a/src/libstore/build/goal.hh +++ b/src/libstore/build/goal.hh @@ -109,13 +109,21 @@ public: struct [[nodiscard]] WaitForSlot {}; struct [[nodiscard]] WaitForAWhile {}; struct [[nodiscard]] ContinueImmediately {}; + struct [[nodiscard]] WaitForGoals { + Goals goals; + }; struct [[nodiscard]] Finished { ExitCode result; std::unique_ptr<Error> ex; }; - struct [[nodiscard]] WorkResult - : std::variant<StillAlive, WaitForSlot, WaitForAWhile, ContinueImmediately, Finished> + struct [[nodiscard]] WorkResult : std::variant< + StillAlive, + WaitForSlot, + WaitForAWhile, + ContinueImmediately, + WaitForGoals, + Finished> { WorkResult() = delete; using variant::variant; @@ -137,8 +145,6 @@ public: virtual WorkResult work() = 0; - void addWaitee(GoalPtr waitee); - virtual void waiteeDone(GoalPtr waitee) { } virtual WorkResult handleChildOutput(int fd, std::string_view data) |