Fixes: make sure all tasks are deleted inside the background thread before ending it
authorFriedrich W. H. Kossebau <friedrich@openismus.com>
Wed, 18 May 2011 13:40:40 +0000 (15:40 +0200)
committerMathias Hasselmann <mathias@openismus.com>
Fri, 27 May 2011 08:05:34 +0000 (10:05 +0200)
commitc6828ce374d92287799c0fdc034a09e255377265
tree708b5e399871b5611a10ef59de450e228333315f
parent87dbe3abf0eb54b46b97e646edf0aa5250ae0aed
Fixes: make sure all tasks are deleted inside the background thread before ending it

RevBy: coco-heads (MR#210)

Details:
All tasks' life-time management is controlled by QctQueue (by connecting
finished() signal to deleteLater() slot of task)
All tasks also only should live in the background thread, and thus need to
be deleted before that thread is ended. So cancel needs to be called on them
while the thread exists. And the number of undestroyed tasks needs to be
tracked for that.
src/engine/queue.cpp