>
> On Nov 21, 2007, at 10:47 AM, Rickard Sandgren wrote:
>
> > Maybe there is a variable I can set, that fltk will check and
> > trigger the callback?
>
>
> This is for FLTK 1.1.8 (svn):
>
> "void awake(void *p);
>
> int awake(void (*callback)(void*), void *userdata);
> The awake() method sends a message pointer to the main thread, causing
> any pending Fl::wait() call to terminate so that the main thread can
> retrieve the message and any pending redraws can be processed.
>
> Multiple calls to Fl::awake() will queue multiple pointers for the
> main thread to process, up to a system-defined (typically several
> thousand) depth. The default message handler saves the last message
> which can be accessed using the Fl::thread_message() function.
>
> 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."
>
>
>
> Also, I can really recommend the "multithreading" manual page of FLTK
> 1.1.8 (SVN, or from the current tarball)
>
>
>
> ----
> http://robowerk.com/
>
>


Thank you very much! Btw I'm using the 2.x version, but I guess it works the 
same. This will solve the problem. =))
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to