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

Automatically choose between BlockingQueuedConnections and QueuedConnections

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P4: Low
    • None
    • 4.6.2
    • Core: Object Model
    • None

    Description

      Currently it is very dangerous to pass non-const pointers and non-const references via a connection or via invokeMethod() to a slot - if the connection is (automatically) executed as a QueuedConnection the application will possibly crash if the called slot modifies the referenced object. However this would be totally safe if Qt would automatically choose between BlockingQueuedConnections and QueuedConnections: a connection should be BlockingQueued if any non-const pointer or non-const reference (or a return-value) is passed.

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes