Re: [MOD] STR #3532: timeout set by Fl::add_timeout elapses too early
Matthias Meixner
Jan 19, 2020
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: https://www.fltk.org/str.php?L3532
Version: 1.3.5
I just stored it to not have to think about what would happen if I reset
it.
However, thinking about it now, what would happen, if you have something
like:
void callback1(void *data)
{
Fl::add_timeout(0.1,callback2,0);
Fl::repeat_timeout(1,callback1,0);
}
I guess in this case repeat_timeout would not work as expected any longer
since the call to add_timeout would reset missed_timeout_by.
Link: https://www.fltk.org/str.php?L3532
Version: 1.3.5
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.