As an example, you could use a Barrier in conjunction with a Camera
post-draw callback. (Of course, that assumes you want to sync after the draw
occurs; you didn't say where you want to sync, so I don't know...)
   -Paul


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of [EMAIL PROTECTED]
> Sent: Monday, June 16, 2008 7:56 AM
> To: osg-users@lists.openscenegraph.org
> Subject: [osg-users] How to synchronize OSG and self-made threads?
> 
> 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-opensce
negraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to