[Qt-interest] Controlling when timers run
Glenn Hughes
ghughes02138 at gmail.com
Thu Jan 14 03:17:27 CET 2010
Hello,
I was wondering if anyone could give me some advice about the following:
I often want to run various tasks periodically, but only when the
stack is "fully unwound" i.e. from the first call to exec, not when
any subsequent exec loops (or other loops) are running, and not when
other calls have been made into the OS that allow timers to run (for
whatever reason).
The motivation is that often timer chores want the program data
structures to be in a known consistent state, but if the timer gets
called in the middle of an operation, things may not be as the chore
code expects, which can easily lead to crashes.
And other tasks I want to run as much as possible (ignoring all the above).
Is there any sort of provision for conditionally running timer chores
like this in Qt?
Thanks in advance
Glenn
More information about the Qt-interest-old
mailing list