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
- depends on
-
QTBUG-86112 Thread safety of QThread
- Closed