>
> On 21.05.2008, at 23:35, Ryan Lovelett wrote:
>
> > When I call add_timeout from a worker thread with the proper mutex
> > of Fl::lock() and Fl::unlock() the timeout never actually begins.
>
> Yes, the timeout timer on MSWindows is based on an actual window, so
> it must be created in the main thread. lock/unlock won't help.
>
> You can call a function in the main thread from a worker by using
> Fl::awake(callback, data):
>
> <http://www.fltk.org/documentation.php/doc-1.1/Fl.html#Fl.awake>
> <http://www.fltk.org/documentation.php/doc-1.1/advanced.html#multithreading
>  >
>
> ----
> http://robowerk.com/
>
>

matthiasm,

That worked like a charm!  Thank you so much.  I never realized that the 
Fl::awake() method could be overloaded!  That solves a lot of my issues about 
my threading.

Again, thank you so very much.

Ryan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to