diff options
author | eldritch horrors <pennae@lix.systems> | 2024-09-30 01:31:30 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-10-01 13:55:03 +0200 |
commit | 732de75f67f030886fd6bb421d49481caa3aa8cf (patch) | |
tree | f0bc4660e0db25c788e5e28ac95d45ab25023bcf /src/libstore/build/worker.hh | |
parent | d5db0b1abc1809ad97fa28b82056b19c4a45710a (diff) |
libstore: remove Worker::wakeUp()
Worker::run() is now entirely based on the kj event loop and promises,
so we need not handle awakeness of goals manually any more. every goal
can instead, once it has finished a partial work call, defer itself to
being called again in the next iteration of the loop. same end effect.
Change-Id: I320eee2fa60bcebaabd74d1323fa96d1402c1d15
Diffstat (limited to 'src/libstore/build/worker.hh')
-rw-r--r-- | src/libstore/build/worker.hh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/libstore/build/worker.hh b/src/libstore/build/worker.hh index dc85c43e3..bb51a2114 100644 --- a/src/libstore/build/worker.hh +++ b/src/libstore/build/worker.hh @@ -91,11 +91,6 @@ private: */ Goals topGoals; - /** - * Goals that are ready to do some work. - */ - Goals awake; - template<typename G> struct CachedGoal { @@ -150,11 +145,6 @@ private: kj::Own<kj::PromiseFulfiller<void>> childFinished; /** - * Wake up a goal (i.e., there is something for it to do). - */ - void wakeUp(GoalPtr goal); - - /** * Wait for input to become available. */ kj::Promise<Result<void>> waitForInput(); |