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

Add a QDeadlineTimer overload for the waitFor* function on Q*Socket classes

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • Network: Sockets
    • None
    • 032ffb70a (dev)

    Description

      And make the old integer-versions call the QDeadlineTimer versions.
      The logic is simpler and using QDeadlineTimer in more places creates more consistency throughout Qt.

      This includes QSslSocket::waitForEncrypted, QTcpSocket::waitForConnected, etc.
      These APIs are not "best practice", but as long as we have them we should keep them updated.

      Possibly do in multiple steps:
      1. Rewrite internals to create and use a QDeadlineTimer
      2. Add QDeadlineTimer overload
      3. Make the int-version inline by way of the INLINE_SINCE machinery.

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            manordheim Mårten Nordheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes