Hi Oleg,
I am using the captureNextFrame function from the ScreenCaptureHandler class in order to create the view screenshot. As far as I understand the view capturing is happens on the next frame in the render thread. How can I synchronize the thread calling the captureNextFrame with the thread that creates the screenshot? (I don't wont to access the file before it is closed).
There's no built-in way of doing this, but you could subclass the ScreenCaptureHandler::WriteToFile class to send a signal to your other thread that the writing is done. You would just override operator(), first calling the base class WriteToFile::operator(), and then sending your signal in whatever way you want.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay [email protected] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

