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

Thread-safety documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.7.0
    • None

    Description

      No member functions of QThread class is documented as thread-safe. If it is truly the case, then it means that all member functions must be called from the thread in which the QThread instance lives, not the thread which the QThread manages. As a consequence, the object returned by QThread::currentThread() should never be dereferenced directly, and the example given for QThread::isInterruptionRequested contradicts this.

      Also, QObject::deleteLater and QObject::thread() are not documented as thread-safe.

      Attachments

        Issue Links

          Activity

            People

              thiago Thiago Macieira
              ericlemanissier Eric Lemanissier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: