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

QThread::isRunning returns false while the thread is still running

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.4, 6.9.1, 6.10.0 FF
    • 6.8.2
    • Core: Threads
    • None
    • Windows 10
    • Windows
    • de90f2e06 (dev), 013793a78 (6.9), 9d576b3a7 (6.8)

    Description

      If a Qt object stucks in its destructor while a thread finishes, QThread::isRunning returns false while the thread is still running.

      Workaround. If QThread::isRunning returns false, call QThread::wait(0) also. If it returns false too, it means that the thread is still running.

      Attachments

        1. qthread_bug.zip
          2 kB
          Alexander Dyagilev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            alervd Alexander Dyagilev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes