diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-02-02 02:01:45 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-02-02 02:01:45 +0100 |
commit | d10cbf7478cd2edfd44c162c1924109422584e22 (patch) | |
tree | 85cf496ef99ee189422ae5ecccac55c489c3c835 /dummyresource/resourcefactory.cpp | |
parent | aa449c82dc3a5505b8a63843b83aed0f5dab8ed1 (diff) | |
download | sink-d10cbf7478cd2edfd44c162c1924109422584e22.tar.gz sink-d10cbf7478cd2edfd44c162c1924109422584e22.zip |
Added JOBAPI todo's.
Work for dvratil.
Diffstat (limited to 'dummyresource/resourcefactory.cpp')
-rw-r--r-- | dummyresource/resourcefactory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp index e5019f2..fab3df9 100644 --- a/dummyresource/resourcefactory.cpp +++ b/dummyresource/resourcefactory.cpp | |||
@@ -168,7 +168,9 @@ private slots: | |||
168 | //mPipeline->modifiedEntity | 168 | //mPipeline->modifiedEntity |
169 | break; | 169 | break; |
170 | case Akonadi2::Commands::CreateEntityCommand: { | 170 | case Akonadi2::Commands::CreateEntityCommand: { |
171 | //TODO job lifetime management | 171 | //TODO JOBAPI: job lifetime management |
172 | //Right now we're just leaking jobs. In this case we'd like jobs that are heap allocated and delete | ||
173 | //themselves once done. In other cases we'd like jobs that only live as long as their handle though. | ||
172 | mPipeline->newEntity(queuedCommand->command()->Data(), queuedCommand->command()->size()).then<void>([messageQueueCallback, whileCallback](Async::Future<void> &future) { | 174 | mPipeline->newEntity(queuedCommand->command()->Data(), queuedCommand->command()->size()).then<void>([messageQueueCallback, whileCallback](Async::Future<void> &future) { |
173 | messageQueueCallback(true); | 175 | messageQueueCallback(true); |
174 | whileCallback(false); | 176 | whileCallback(false); |