TaskTree: Change the return type of waitForBarrierTask

In this way it's possible to attach the executable item's additions,
like withTimeout() or withLog().

Change-Id: Iff668627413a0d1e6499374cf74a545b2f166d62
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-08-07 12:48:43 +02:00
parent 86b179143d
commit 56ffedc547

View File

@@ -71,7 +71,7 @@ using MultiBarrier = Storage<SharedBarrier<Limit>>;
using SingleBarrier = MultiBarrier<1>;
template <int Limit>
GroupItem waitForBarrierTask(const MultiBarrier<Limit> &sharedBarrier)
ExecutableItem waitForBarrierTask(const MultiBarrier<Limit> &sharedBarrier)
{
return BarrierTask([sharedBarrier](Barrier &barrier) {
SharedBarrier<Limit> *activeBarrier = sharedBarrier.activeStorage();