I would like to use the Fl::awake(callback) function to call functions from my main loop in an FLTK program. I am calling Fl::awake from a child thread, it returns 1 (success), but my function never gets called. I am calling Fl::wait() in a loop in the main thread. Is there any way i can troubleshoot this?
I would like to use the Fl::awake(callback) function to call functions from my main
Share
Code below is an example of a relatively simple FLTK 1.3 application which uses
Fl::awake(callback). The code is from the FLTK’s test directory. Just fetch the source, and you’ll find numerous examples. You did not give us your code, but I assume you did not callFl::lock(), and laterFl::unlock()in your thread. It is essential because you should not access widgets outside that section…include