Re: [osg-users] initGLNames thread safety

2009-06-22 Thread Paul Martz
I ran my test case for this issue on the 282 tag on Windows and encountered no problems. I'll try the same on the problem Mac system this evening. -Paul Robert Osfield wrote: Hi Paul, On Sun, Jun 21, 2009 at 7:42 PM, Paul Martzpma...@skew-matrix.com wrote: Excellent! That

Re: [osg-users] initGLNames thread safety

2009-06-22 Thread Paul Martz
Re-tested with 8 core Mac and 2.8.2 tag. Verified fixed. Thanks again! -Paul Robert Osfield wrote: Hi Paul, On Sun, Jun 21, 2009 at 7:42 PM, Paul Martzpma...@skew-matrix.com wrote: Excellent! That nailed it, Robert. Bug is not present with current sen head. Tested my app

Re: [osg-users] initGLNames thread safety

2009-06-21 Thread Robert Osfield
Hi Paul, The .osg plugin is meant to be thread safe and usable in multi-threaded loading. It sounds like initialization is the problem with initGLNames(). I've added a static mutex lock to the initGLNames(), and checked this into svn/trunk. Could you do an svn update and see if the problem

Re: [osg-users] initGLNames thread safety

2009-06-21 Thread Paul Martz
Excellent! That nailed it, Robert. Bug is not present with current sen head. Tested my app multiple times and was able to load .OSG files with multiple threads each time. Thanks much. Having this in 2.8.2 would be a great idea. Let me know when it is there and I'll test again. -Paul Robert

[osg-users] initGLNames thread safety

2009-06-20 Thread Paul Martz
Hi Robert -- In an app I'm working on, I fire off multiple threads to read multiple files asynchronously (in this case, .OSG files). This seems to work OK on my dual core Windows laptop, but fails roughly 80% of the time on my 8-core Mac. The stack trace shows 2 or more threads allocating a