[osg-users] Multithreading crash due to osgDb::Registry::instance()

2009-03-17 Thread I-Nixon, Anthony D
I've encountered a crash when using CompositeViewer in Multithreaded mode due to concurrent access to osgDb::Registry::instance(). The usage scenario is having two views (that have an empty scene graph - since no data has been loaded, osgdb::Registry::instance() hasn't yet been called). On the

Re: [osg-users] Multithreading crash due to osgDb::Registry::instance()

2009-03-17 Thread Robert Osfield
Hi Anthony, I have avoided adding a mutex into the Registry::instance() method as it would incur a cost for every call to it, and it's only the very first call that it's an issue for so it's the only time you need to be careful about access to it. Given I don't want to introduce a mutex one then