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

QThread::wait(xxx) might not timeout after xxx seconds if destructors are too slow.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.0
    • 4.7.0
    • Core: Threads
    • None
    • Linux
    • a43583e0221311b7fe666726ab668e41c5e4bba2

      See attached test case.

      The problem is that QThread::wait tries to lock d->mutex.
      But QThreadPrivate::finish also keep this mutex locked, and do not release it while emitting the signal, or destroying the QThreadStorage objects.

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

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes