| Age | Commit message (Collapse) | Author |
|
|
|
|
|
\see Fl::timeout_list();
|
|
This method also returns the data pointer of the removed timeout.
This new method is generally useful for user code and particularly
necessary to fix issue #991.
Co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
|
|
Add missing return statement to replacement function for trunc().
Closes #944
|
|
- add configure + CMake checks to define HAVE_TRUNC in config.h
- src/Fl_Timeout.cxx: add local replacement function
|
|
warning C4244: '=': conversion from 'double' to 'time_t',
possible loss of data
warning C4244: 'return': conversion from 'time_t' to 'long',
possible loss of data
|
|
|
|
|
|
See comment in the code. This makes the implementation more future
proof although it's still problematic starting around 2038.
|
|
|
|
Can be handy when Fl::seconds_since() is used early at program startup
|
|
|
|
Some functions didn't document the handling of arguments properly,
particularly Fl::has_timeout() and Fl::remove_timeout().
This is now fixed by documenting the correct behavior that was
preserved (re-implemented) from FLTK 1.3.x in the new class Fl_Timeout.
Unfortunately there have been some inconsistencies (likely unexpected
behavior) which have been preserved and which are now documented.
|
|
|
|
This commit prevents "timer loops" without intermediate event handling
if callback handling takes longer than the timer delay of repeating
timers.
For more details see GitHub issue #450.
|
|
|
|
Also: fix doxygen warning
|
|
Add Fl_Timeout class
Move platform independent code of Fl::wait() to main part
- basic timeout handling
- Fl::run_checks()
- Fl::run_idle()
- Fl::idle()
- waiting time calculation (next timeout)
- remove platform dependent "screen driver" stuff
|