summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-11-28 00:55:48 +0100
committerMatthias Melcher <github@matthiasm.com>2025-11-28 00:55:57 +0100
commitee43155a4bedc6f9e2eafd2e2af00b85e92ad2be (patch)
tree1279a2526cbaf14a4db0e3efcf53dbb53d75d065 /src/Fl.cxx
parent6568f60ab8ccb5df88826a9e9184d48a1c124843 (diff)
Add method to list running timeouts (#1306).
\see Fl::timeout_list();
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 22ad0353a..c470f95e3 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -448,6 +448,14 @@ int Fl::remove_next_timeout(Fl_Timeout_Handler cb, void *data, void **data_retur
return Fl_Timeout::remove_next_timeout(cb, data, data_return);
}
+/**
+ Return a list of all currently running timeouts.
+ \return a vector with all relevant timeout data
+*/
+std::vector<Fl::TimeoutData> Fl::timeout_list() {
+ return Fl_Timeout::timeout_list();
+}
+
////////////////////////////////////////////////////////////////
// Checks are just stored in a list. They are called in the reverse