Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0 RC2
-
None
-
-
d3ccb5904d30d8d94b828d41f145f6f88b4ca9d7 (qt/qtbase/dev) f980b91c79c8f75b45fe4c8a5ae2405bb936e784 (qt/qtbase/5.15)
-
Da Vinci sprint 15
Description
The QThread documentation doesn't mention which functions are thread-safe.
However, one would expect that at least QThread::quit and QThread::exit are thread safe, to be able to terminate the thread from within the new and the old thread.
Inspecting the code (https://code.woboq.org/qt5/qtbase/src/corelib/thread/qthread.cpp.html#568), indeed reveals a mutex mechanism is precent.
Also many other members functions are guarded by a mutex: QThread::setPriority, QThread::requestInterruption, QThread::isRunning, ...
Attachments
Issue Links
- is required for
-
QTBUG-54997 Thread-safety documentation
- Open
For Gerrit Dashboard: QTBUG-86112 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
310697,2 | Doc: Improve thread safety docs | dev | qt/qtbase | Status: MERGED | +2 | 0 |
310799,2 | Doc: Improve thread safety docs | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |