Hi Andreas, Either put a mutex to do the sync before the call to renderingTraversals() yourself or use a custom osg::Operation and attach it to the viewer via viewer.addUpdateOpeation(). For the later see the osgterrain's multi-threaded code path.
Robert. On Mon, Jun 16, 2008 at 2:55 PM, <[EMAIL PROTECTED]> wrote: > Hello everybody! > > I have an application using the osgViewer::Viewer (OSG 2.4) and a self-made > thread, that has to modify the scene graph. To get no conflict I'm using a > self made mutex to lock the add/remove and frame function calls. > > Now I want to know, if there is a built-in functionality to synchronize my > thread with the OSG cull and draw threads so that I don't need the mutex > anymore. I tried find hints in the wiki and the mailing list but did not find > anything tangible. > Can anybody give me an advice? Looking forward to hear from you! > -- > Andreas Richter > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org