I have two threads in my application: the fltk-thread and the main editor 
thread. The fltk app is using a browser to display a tree of objects, created 
in the editor-thread.

How can I make the fltk-thread to layout its browser-element without actually 
letting the editor-thread call the fltk layoutfunction directly?

Of course, I can simply call the layout or callback functions directly from the 
editorthread, but that will make the editorthread to execute them. I want to 
avoid that because of data-sharing problems that might occur... I don't want to 
use lock() when the problem might be solveable in another way. I would much 
rather avoid calling the fltkfunctions from the other thread.


Maybe there is a variable I can set, that fltk will check and trigger the 
callback?


thanks for any help.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to