Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112374

Deprecate QFutureSynchronizer

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • Core: Threads
    • None
    • 5
    • Foundation PM Prioritized

      QtFuture::whenAll creates a new QFuture that finishes when all the QFutures passed to it finishes. That's the same as QFutureSynchronizer does (minus the setCancelOnWait thing).

      Further, QFutureSynchronizer<T> has the limitation that all QFutures must have the same T or it must be void for all of them. whenAll does not have this limitation so it's superior in this regard.

      Additionally, the QFuture returned from whenAll can be used with QFutureWatcher to get signals.

      So, other than cancelOnWait, it has been made redundant and we should deprecate it.
      As a part of making sure it is exactly the same it would be a bonus if the implementation of QFutureSynchronizer was using QtFuture::whenAll.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cnn Qt Core & Network
            manordheim MÃ¥rten Nordheim
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes