diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-06 20:13:30 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-01-06 20:13:30 +0100 |
commit | c73371e12fd127cbc39496b9ffadbcf9b702b600 (patch) | |
tree | 912dab0f3105a2c4c4f994ae6adbf54d0158d595 /async/src/async.h | |
parent | 3e786efb2811f1e88485ffff50d1327d07f40892 (diff) | |
download | sink-c73371e12fd127cbc39496b9ffadbcf9b702b600.tar.gz sink-c73371e12fd127cbc39496b9ffadbcf9b702b600.zip |
Make async use of jobs work.
Diffstat (limited to 'async/src/async.h')
-rw-r--r-- | async/src/async.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/async/src/async.h b/async/src/async.h index 6548079..4fb4f2b 100644 --- a/async/src/async.h +++ b/async/src/async.h | |||
@@ -287,7 +287,8 @@ void Executor<PrevOut, Out, In ...>::exec() | |||
287 | auto futureWatcher = new Async::FutureWatcher<PrevOut>(); | 287 | auto futureWatcher = new Async::FutureWatcher<PrevOut>(); |
288 | QObject::connect(futureWatcher, &Async::FutureWatcher<PrevOut>::futureReady, | 288 | QObject::connect(futureWatcher, &Async::FutureWatcher<PrevOut>::futureReady, |
289 | [futureWatcher, this]() { | 289 | [futureWatcher, this]() { |
290 | assert(futureWatcher->future().isFinished()); | 290 | //FIXME mFinished is not part of the d-pointer but we copy the future below |
291 | // assert(futureWatcher->future().isFinished()); | ||
291 | futureWatcher->deleteLater(); | 292 | futureWatcher->deleteLater(); |
292 | previousFutureReady(); | 293 | previousFutureReady(); |
293 | }); | 294 | }); |