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

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

XMLWordPrintable

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

      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.

        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.

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes