[Qt-interest] Do QTimer Race Conditions Exist
Bradley T. Hughes
bradley.hughes at nokia.com
Fri Feb 12 10:36:04 CET 2010
On 02/11/2010 10:40 PM, Pau Garcia i Quiles wrote:
> Hello,
>
>> QTimer is
>> event-based, hence it can only emit its signal once it receives its
>> QTimerEvent()
>
> That limitation is most severe on Windows, where it is a pure event
> counter, therefore under high CPU load you may miss ticks and your
> timers will go crazy.
Have you had this happen to you before? If so, please file a bug report.
This should never happen.
> On X11 and Mac, it calls clock_gettime( CLK_MONOTONIC ) and you should
> never miss ticks. Under high CPU load, there might be a slight delay
> until the QTimerEvent which will fire the timeout() fires in general
> it works very well.
>
> IMHO QTimer should be rewritten on Windows, in terms of GetTickCount or similar.
I disagree ;)
--
Bradley T. Hughes (Nokia-D-Qt/Oslo), bradley.hughes at nokia.com
Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
More information about the Qt-interest-old
mailing list