FLTK logo

[master] 4d17cf3 - Fix documentation of Fl_Timeout::insert()

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 4d17cf3 - Fix documentation of Fl_Timeout::insert() "Albrecht Schlosser" Oct 09, 2022  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.