On 01/02/13 05:30, claude roux wrote:
> one specificity of my implementation is that the FLTK main loop
> is launched within a thread
Pretty sure FLTK doesn't support that; from the docs on threading
there's a warning about this:
http://fltk.org/doc-1.3/advanced.html
"FLTK supports multiple platforms, some of which allow only the main thread
to handle system events and open or close windows."
..which I take to mean: only call Fl::run() in the main thread.
It goes on to say:
"The safe thing to do is to adhere to the following rules for threads
on all operating systems:"
..and in the bullet list that follows, it does say:
o Don't call Fl::wait(), Fl::flush() or any related methods that will
handle system messages
..which I take to mean Fl::run() as being 'related'.
Perhaps, though, the list should explicitly mention Fl::run(),
as it's the most common thing to call.
Devs: shouldn't we add Fl::run() to that short list?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk