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

QRunnable access to interrupt the QThreadPool it is running in

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.8.4
    • Core: Threads
    • None

    Description

      As a developer running many threads of QRunnable objects in a single thread pool, I would like to cause one of my threads to raise an error to the QThreadPool after run() completes, so that I can cause my QThreadPool::waitForDone() to complete early, and to know about an error-state.

      As a nice-to-have, I might like to be able to inquire about which QRunnable failed, but given the deletable nature of those objects, there might not be a good way to do that. Perhaps the error-state could be communicated with a string, to get this information.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            macetw Tyler Mace
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes