summaryrefslogtreecommitdiff
path: root/src/Fl_System_Driver.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-06-19 15:33:38 +0200
committerMatthias Melcher <github@matthiasm.com>2025-06-19 15:33:38 +0200
commiteadea6a992d4e105b3165a22d091c66be374ae99 (patch)
tree6521e659aa52c5f477bfbf81d0f05675fbc641ef /src/Fl_System_Driver.H
parent3d13dfefa9d53ef76d77fe57a4d6d51eddc33739 (diff)
Update Fl::await() and friends API and documentation
This creates the base for #1263, but does not fix it yet.
Diffstat (limited to 'src/Fl_System_Driver.H')
-rw-r--r--src/Fl_System_Driver.H14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Fl_System_Driver.H b/src/Fl_System_Driver.H
index e306e7e74..2ec99745a 100644
--- a/src/Fl_System_Driver.H
+++ b/src/Fl_System_Driver.H
@@ -63,8 +63,20 @@ protected:
// implement once for each platform
static Fl_System_Driver *newSystemDriver();
Fl_System_Driver();
- static bool awake_ring_empty();
int filename_relative_(char *to, int tolen, const char *from, const char *base, bool case_sensitive);
+
+ // -- Awake handler stuff --
+public:
+ static Fl_Awake_Handler *awake_ring_;
+ static void **awake_data_;
+ static int awake_ring_size_;
+ static int awake_ring_head_;
+ static int awake_ring_tail_;
+ static bool awake_pending_;
+ static int push_awake_handler(Fl_Awake_Handler, void*, bool once);
+ static int pop_awake_handler(Fl_Awake_Handler&, void*&);
+ static bool awake_ring_empty();
+
public:
virtual ~Fl_System_Driver();
static int command_key;