diff options
author | eldritch horrors <pennae@lix.systems> | 2024-07-20 21:05:19 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-22 19:01:40 +0000 |
commit | 58a91d70c9c6f22bbb5425f1e9973befe3fdebfb (patch) | |
tree | 001e6d080fa4fb3964ce9f6421078382e5b1e3b7 /src/libstore/build/substitution-goal.hh | |
parent | ad36fb43ada8b4b31a10f6a7e1bade9f00aaa661 (diff) |
libstore: use std::async instead of Goal threads
the goals are either already using std::async and merely forgot to
remove std::thread vestiges or they emulate async with threads and
promises. we can simply use async directly everywhere for clarity.
Change-Id: I3f05098310a25984f10fff1e68c573329002b500
Diffstat (limited to 'src/libstore/build/substitution-goal.hh')
-rw-r--r-- | src/libstore/build/substitution-goal.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstore/build/substitution-goal.hh b/src/libstore/build/substitution-goal.hh index 1d389d328..52780a967 100644 --- a/src/libstore/build/substitution-goal.hh +++ b/src/libstore/build/substitution-goal.hh @@ -50,9 +50,7 @@ struct PathSubstitutionGoal : public Goal /** * The substituter thread. */ - std::thread thr; - - std::promise<void> promise; + std::future<void> thr; /** * Whether to try to repair a valid path. |