How can I find out quantity of unfulfilled tasks in QThreadPool?
Solved
General and Desktop
-
@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.