Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.3.0 Alpha
-
None
-
cf94036c0b767c338392a00cdd76f0a4ba7a1cce
Description
QRect and QPoint are reentrant, but it's not mentioned in the documentation.
The documentation states that Qt classes are not reentrant unless explicitly states so:
> Note: Qt classes are only documented as thread-safe if they are intended to be used by multiple threads. If a function is not marked as thread-safe or reentrant, it should not be used from different threads. If a class is not marked as thread-safe or reentrant then a specific instance of that class should not be accessed from different threads.
So the documentation is contradicting itself.
There are probably more classes with this issue - QPointer is another one, for example.
Attachments
For Gerrit Dashboard: QTBUG-37667 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
81709,1 | Mark QPoint, QPointF, QRect, QRectF as reentrant. | stable | qt/qtbase | Status: MERGED | -1 | 0 |