On Aug 19, 2006, at 10:36 AM, James McCarthy wrote:
Hello List !
I was pondering to create a little utility application for myself,
and have many repeating timers, at various intervals.
I'm not sure this'll quite work as I'm thinking, but in the code for
each timer, if I set the period=0 for every -other-
timer, and then re-enable them to 2 at the end, will this ensure
that only ever 1 timer at a time is firing ?
Timers should never fire at the same time -- the second timer will
wait for the first timer's Action event to return before firing. This
happens automatically as Timer's Action events are all on the same
thread. You shouldn't need to write any code to ensure that only one
timer fires at any given time.
HTH,
Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>