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

Move singleton thread affinity assertion from the documentation into Qt itself

    XMLWordPrintable

Details

    Description

      https://codereview.qt-project.org/c/qt/qtdeclarative/+/510512/9..11/src/qml/doc/src/qmlsingletons.qdoc recommends adding a thread affinity assertion:

              // The engine has to have the same thread affinity as the singleton.
              Q_ASSERT(engine->thread() == s_singletonInstance->thread());
      

      It would be ideal if we could move this check into Qt itself to save users from having to do it.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes