From eadea6a992d4e105b3165a22d091c66be374ae99 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 19 Jun 2025 15:33:38 +0200 Subject: Update Fl::await() and friends API and documentation This creates the base for #1263, but does not fix it yet. --- src/Fl_System_Driver.H | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/Fl_System_Driver.H') 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; -- cgit v1.2.3