[Interest] Scalability of QTimer or QObject::startTimer
Charley Bay
charleyb123 at gmail.com
Fri Oct 26 17:40:34 CEST 2012
Prashant spaketh:
> <snip>, However, QTimer documentation states that
> "If Qt is unable to deliver the requested number of timer clicks, it will
> silently discard some."
> I don't know how to interpret this statement. Does it mean that if a timer
> has a very low resolution, some clicks are neglected. OR does it mean that
> if a significant number of clicks from various timers happens at around the
> same time, clicks will be discarded. <snip>,
Bo respondeth:
> <snip>,
> It means if the thread is busy for so long that the timer should have fired
> X times, it may fire anything from 1 to X times. But it will at least fire
> once.
Good answer by Bo.
I don't have "documentation-authority", but IMHO the docs should be
updated to something like:
CURRENT:
"If Qt is unable to deliver the requested number of timer clicks, it
will silently discard some."
PROPOSED:
"If Qt is unable to deliver the requested number of timer clicks, it
will silently collapse "N" clicks to "1+" clicks."
--charley
More information about the Interest
mailing list