summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-09 15:07:46 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-09 15:07:59 +0100
commita6dd0adac7078ea93955242ab4bad49c812c20a8 (patch)
tree2e6c3132d9ea7993aa62d26b91385d9886de6de3 /src/Fl.cxx
parent13ce93330a5e5e516e179b5580286e6de43afa5b (diff)
Doc only: fix for "Fl::awake() and Fl::add_timeout()" (#524)
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index fa0620fa6..79956bfd7 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -258,6 +258,9 @@ int Fl::event_inside(const Fl_Widget *o) /*const*/ {
If you need more accurate, repeated timeouts, use Fl::repeat_timeout() to
reschedule the subsequent timeouts. Please see Fl::repeat_timeout() for
an example.
+
+ Since version 1.4, a timeout can be started from a child thread under the
+ condition that the call to Fl::add_timeout is wrapped in Fl::lock() and Fl::unlock().
\param[in] time delta time in seconds until the timer expires
\param[in] cb callback function