On 05.10.2009, at 22:12, Mat Burton wrote:
> Main thread:
>
> Fl::lock(); // Do I need this?
Yes, you need that one. It tells FLTK that you will be using threads.
> while (Fl::wait())
> {
> // Check for messages
> }
>
> Other threads:
>
> // Not locking FLTK here, is that bad?
>
> Fl::awake(someMessage);
awake() is thread safe. See here
http://www.fltk.org/doc-1.1/advanced.html#advanced
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk