Qt Labs Forum » Qt Concurrent

QFutureWatcher and many QFutures

(1 post)
  • Started 1 year ago by wouterkatisl

  1. Hello,

    after some struggeling with QThread for a certain purpose, I decided to give Qt Concurrent a go for my purpose and it seems to fit quite well and would mean that I could reduce my code quite a bit.

    However, in my problem I want to schedule many (100s to 1000s) tasks and I want each of these tasks to emit updates. Currently it seems that there is a 1:1 relationship between QFutures and QFutureWatchers. This means that I would have to create a lot of watchers with no central management point where the update signals would orgininate from. In turn, this would mean I would have to write a QFutureWatcher manager class, which would be suboptimal, as I'm sure this could be more efficiently implemented.

    Are there any plans to create a QFuturesWatcher or to allow many QFutures into a QFutureWatcher, or should I just create my own wrapper class for this?

    Posted: 1 year #

RSS feed for this topic

Reply

You must log in to post.



© 2008 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners.