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

Thread-safety documentation

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes