Solved How can I find out quantity of unfulfilled tasks in QThreadPool?
-
I want know all of my remaining tasks.
How can I do it? -
@AlekseyB How do you manage your tasks?
Keep track of not started or running tasks (for example keep them in a list).
If a thread finishes its task it can emit a signal so you can remove the finished task from the list. -
@jsulm said in How can I find out quantity of unfulfilled tasks in QThreadPool?:
Keep track of not started or running tasks (for example keep them in a list).
If a thread finishes its task it can emit a signal so you can remove the finished task from the list.Now I use a similar solution. But I don't like it.
-
Hi,
QThreadPool doesn't provide that API so you're doing the right thing.
-
@SGaist Thenks!