I've been warned that the if Fl::awake() enqueues data into a queue of depth 1. So if it's called more than once before Fl::thread_message() is called, old messages will be lost.
However, the documentation for the function int Fl::awake(void (*callback)(void*), void *userdata) says this: "The second form of awake() registers a function that will be called by the main thread during the next message handling cycle. awake() will return 0 if the callback function was registered, and -1 if registration failed. Over a thousand awake callbacks can be registered simultaneously." Note the "Over a thousand..." comment in the last sentence. So does that mean as long as I use the callback-version of Fl::awake(), I don't have to worry about lost messages (within reason)? _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

