|
|
commit 4d17cf310dc953703bf3a60763b681eb217bc3e9
Author: Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Sun Oct 9 14:30:32 2022 +0200
Commit: Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Sun Oct 9 14:30:32 2022 +0200
Fix documentation of Fl_Timeout::insert()
src/Fl_Timeout.cxx | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git src/Fl_Timeout.cxx src/Fl_Timeout.cxx
index f93b863..d530a87 100644
--- src/Fl_Timeout.cxx
+++ src/Fl_Timeout.cxx
@@ -97,17 +97,10 @@ static double elapsed_time() {
}
/**
- Insert a timer entry into the active timer queue.
+ Insert this timer entry into the active timer queue.
- The base class Fl_Timeout inserts the timer as the first entry in
- the queue of active timers. The default implementation is sufficient
- for macOS and Windows.
-
- Derived classes (e.g. Fl_Timeout) can override this method.
- Currently the Posix timeout handling (Unix, Linux) does this so
- the timer queue entries are ordered by due time.
-
- \param[in] t Timer to be inserted (Fl_Timeout or derived class)
+ The timer is inserted at the required position so the timer queue
+ is always ordered by due time.
*/
void Fl_Timeout::insert() {
Fl_Timeout **p = (Fl_Timeout **)&first_timeout;
[ Direct Link to Message ] | |
|
| |