From 76affdbfd3e3cd191c16aca52e2e9944eb9d9520 Mon Sep 17 00:00:00 2001
From: Michael R Sweet
The awake() method sends a message pointer to the +main thread, causing any pending wait() call to +terminate so that the main thread can retrieve the message and +any pending redraws can be processed. +
Changes fl_color(FL_WHITE) and the same colors as @@ -742,6 +753,25 @@ widget uses the event.
Returns true if the timeout exists and has not been called yet. +
The lock() method blocks the current thread until it +can safely access FLTK widgets and data. Child threads should +call this method prior to updating any widgets or accessing +data. The main thread must call lock() to initialize +the threading support in FLTK. + +
Child threads must call unlock() when they are done +accessing FLTK. + +
When the wait() method is waiting +for input or timeouts, child threads are given access to FLTK. +Similarly, when the main thread needs to do processing, it will +wait until all child threads have called unlock() before processing +additional data. +
Returns the top-most modal() window currently shown. @@ -962,6 +992,19 @@ FL_SHORTCUT, against a shortcut value (described in Fl_Widget::test_shortcut(). +
The thread_message() method returns the last message +that was sent from a child by the awake() method. + +
The unlock() method releases the lock that was set +using the lock() method. Child +threads should call this method as soon as they are finished +accessing FLTK. +
Returns the compiled-in value of the FL_VERSION constant. This -- cgit v1.2.3