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

Deprecate QFutureSynchronizer

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes