Hi Mick,

I've been reviewing the code change and what gets done in the
Operation::release() and I believe it should be safe to roll out
generally, although I'm not 100% confident.  With testing at this end
everything looks OK so I've merged with svn/trunk with revision 9919.
If testing out in the community goes fine with svn/trunk and 2.9.1
then I'll consider merging this change with the OSG-2.8 branch.

Robert.

On Thu, Mar 12, 2009 at 2:17 PM, Mick <[email protected]> wrote:
> Hi list,
>
> Robert asked me to submit a change to the GraphicsThread.cpp (based on a copy 
> of a fresh
> svn checkout: revision 9460).
>
> I added the line OperationThread::_operationQueue->releaseAllOperations() at 
> the end of
> the GraphicsThread::run() method.
>
> This ensures that all osg::Operation's will be notified before 
> thread-termination. Thus, we can
> safely release any resources which were bound to this thread (e.g. allocated 
> by CUDA in a multithreaded
> application: please see user's mailinglist "osgCuda").
>
> Best regards,
> Mick
>
> --
> SVT Group
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=8356#8356
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to