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

Quitting a QThread with an eventloop before the QThread eventloop starts causes deadlock

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 4.7.0
    • 4.7.0
    • Core: Threads
    • None

    Description

      If an application that uses a QThread with an eventloop is exited before the QThread eventloop has started a deadlock will occur. See attachment for an example of one (poor) attempt to avoid the problem.

      If quit() is called before the eventloop is started, perhaps the eventloop should not start at all.

      Attachments

        1. main.cpp
          1.0 kB
          Martin Jones (closed Nokia identity)
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            bhughes Bradley T. Hughes (closed Nokia Identity) (Inactive)
            martjone Martin Jones (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes