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

Move singleton thread affinity assertion from the documentation into Qt itself

XMLWordPrintable

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes