Hi all, First off, I am both an OSG and multithreading newb so I apologize if I am fundamentally off.
Following the OSG Beginner's book, I am able to successfully start threads before the viewer runs using OpenThreads. My question is: is it possible to create threads dynamically, only when a user requires it, or must they always be created before the viewer runs? If you require more background, I have created a GUI with the FLTK library and am using OSG to render the scene. I want to be able to connect to a given sensor by hitting a GUI button in order to get live data. The problem is it takes a while to connect to a given sensor and my UI freezes. As stated above, if I spawn the thread before the viewer runs then everything is fine. I have tried spawning threads following the button press, but it does not work as my UI freezes. Any assistance or pointers would be most appreciated. Thank you! Cheers, Andrew ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47186#47186 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

