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

2009-03-19 Thread Paul Speed
Just a note for those of us who have been bitten by double check locking issues in Java, this technique is highly dependent on the threading and data architecture in use. There are subtle issues between when a thread commits its local state and the possibility for the compiler to reorder

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

2009-03-17 Thread Schmidt, Richard
An: OpenSceneGraph Users Betreff: Re: [osg-users] Multithreading crash due toosgDb::Registry::instance() 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

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

2009-03-17 Thread Robert Osfield
2009/3/17 Schmidt, Richard richard.schm...@eads.com http://www.cs.wustl.edu/~schmidt/PDF/DC-Locking.pdfhttp://www.cs.wustl.edu/%7Eschmidt/PDF/DC-Locking.pdf Could you explain what the above document is all about... Robert. ___ osg-users mailing

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

2009-03-17 Thread Paul Melis
Robert Osfield wrote: 2009/3/17 Schmidt, Richard richard.schm...@eads.com mailto:richard.schm...@eads.com http://www.cs.wustl.edu/~schmidt/PDF/DC-Locking.pdf http://www.cs.wustl.edu/%7Eschmidt/PDF/DC-Locking.pdf Could you explain what the above document is all about... I just read it