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

Port QDnsLookupThreadPool to Q_APPLICATION_STATIC

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P4: Low
    • None
    • None
    • Network: DNS
    • None
    • f5b584022b9315f9de7a7df02c642ee3b396627c

    Description

      The QDnsLookupThreadPool is-a Q_OBJECT subclass of QThreadPool just so it can listen to the QCoreApplication::destroyed() signal and shut itself down. All this scaffolding has recently been abstracted into a macro Q_APPLICATION_STATIC. As a result, we could save one QObject subclass (together with RTTI etc often saving 1KiB of TEXT), because the Q_A_S payload object need not ba-a QObject, it can aggregate intead (has-a QObject).

      Attachments

        Issue Links

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

          Activity

            People

              manordheim MÃ¥rten Nordheim
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes