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

Incorrect ordering of signals and method replies

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.3
    • Remote Objects
    • None
    • Linux/X11

      Method replies and signals are not received on replica side in the same order as created on source side.

      Consider this code on source:

      int foo()
      {
          QTimer::singleShot(0, this, [this]() { emit someSignal(); });
          return 10;
      }
      

      when calling foo() on replica, this is the result:

      // someSignal() emitted
      // foo() returns 10
      

      but it should be

      // foo() returns 10
      // someSignal() emitted
      

      since the foo() returns before the signal is emitted.

        For Gerrit Dashboard: QTBUG-75602
        # Subject Branch Project Status CR V

            bstottle Brett Stottlemyer
            nowrep David Rosca
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change