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

QRect and QPoint are not marked reentrant in the documentation even though they are.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.3.0
    • 5.3.0 Alpha
    • Documentation
    • 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

        Activity

          People

            mitch_curtis Mitch Curtis
            sashoalm Alexander Almaleh
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes