[Development] RFC: QSystemAlignedTimer to QtCore

Thiago Macieira thiago at kde.org
Mon Nov 21 13:15:50 CET 2011


On Monday, 21 de November de 2011 10.52.39, lars.knoll at nokia.com wrote:
> Thiago's work was IIRC limited to aligning timers within one process.
> That's good, but  it doesn't yet cover the use case of having several
> processes that you want to wake up together (to reduce wake ups and bundle
> network traffic).

It does somewhat, because it chooses an arbitrary but well-known boundary 
based on the system's monotonic timer.

But it's not enough in some cases. For example, two 30-second timers will be 
aligned to a 1-second boundary, but there's no guarantee that they choose the 
same boundary.

See http://codereview.qt-project.org/#change,657 through
http://codereview.qt-project.org/#change,662

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20111121/def5784a/attachment.sig>


More information about the Development mailing list