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

Port QDnsLookupThreadPool to Q_APPLICATION_STATIC

XMLWordPrintable

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

      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).

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

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes