summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index c8f579315..148bca0ee 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -1075,6 +1075,16 @@ public:
static void awake(void* message = 0);
/** See void awake(void* message=0). */
static int awake(Fl_Awake_Handler cb, void* message = 0);
+
+ // Cross platform sleep API
+
+ /** flexible sleep function in seconds, accepts decimals typically up to 100usec resolution (depends on your hardware) */
+ static void sleep(double seconds);
+ /** milli seconds sleep */
+ static void msleep(unsigned long milliseconds);
+ /** microseconds sleep */
+ static void usleep(unsigned long long microseconds);
+
/**
The thread_message() method returns the last message
that was sent from a child by the awake() method.