aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/goal.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-08-14 12:32:26 +0200
committerjade <lix@jade.fyi>2024-08-19 09:13:44 +0000
commitb40369942cdb3e713c473515b9760f8a0d2ed3cc (patch)
tree8d49819ec6ddbc9d5dfef8aa6d04b8791e7b27e9 /src/libstore/build/goal.hh
parentfca523d66126ea1df7c3eda9ab1a2c9b7b1c7ba5 (diff)
libstore: make Worker::childStarted private
this can be a proper WorkResult now. childTerminated is unfortunately a lot more stubborn and won't be made private for quite a while yet. once we can get rid of the Worker poll loop that *should* be possible though Change-Id: I2218df202da5cb84e852f6a37e4c20367495b617
Diffstat (limited to 'src/libstore/build/goal.hh')
-rw-r--r--src/libstore/build/goal.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/build/goal.hh b/src/libstore/build/goal.hh
index 114abda41..2ac96ace1 100644
--- a/src/libstore/build/goal.hh
+++ b/src/libstore/build/goal.hh
@@ -112,6 +112,10 @@ public:
struct [[nodiscard]] WaitForGoals {
Goals goals;
};
+ struct [[nodiscard]] WaitForWorld {
+ std::set<int> fds;
+ bool inBuildSlot;
+ };
struct [[nodiscard]] Finished {
ExitCode result;
std::unique_ptr<Error> ex;
@@ -127,6 +131,7 @@ public:
WaitForAWhile,
ContinueImmediately,
WaitForGoals,
+ WaitForWorld,
Finished>
{
WorkResult() = delete;