Radu,
The fixes I applied may not fully address all of the problems, but only the ones I experience with my data set.

It is likely the case that the patch to osg/Program.cpp only fixes 1 instance of multi-threaded access to osg::GL2Extentions.

I believe that the patch to Texture.cpp is a valid cross-platform fix because it is accessing a static buffered_value<ref_ptr<TextureExtensions> > while doing multi-context rendering.  
The first time it attempts to render the texture in a new context it will have to resize the internal std::vector based upon the new
Context ID.   If you have many threads like my application does (7 independent contexts) then you have a race condition and it is
inevitable that two threads will attempt to resize that static / global std::vector at the same time.

Dan

On Jul 25, 2006, at 12:27 PM, Robert Osfield wrote:

Hi Radu,

Could you try Daniel's patches that he submitted today for OSX thread fixes.

I want to do a bit more investigative work on why the patches are
required, feedback back from other OSX would help in scope out more of
the problem.

Robert.
_______________________________________________
osg-users mailing list

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to