Hi Hartwig,

> Is it possible to recreate the 2*N threads being created with a
> standard OSG example like osgviewer?

I have added some debug output to DatabasePager and OpenThreads and
confirmed that some DatabaseThread are run twice.

I think there are two bugs here - first of DatabasePager.cpp is
calling startThead twice, secondly OpenThreads itself isn't catching
this.

OpenThreads::Thread::startThread() needs to be modified so that it
doesn't start a thread that has already been started.  And
DatabasePager needs to fixed so it doesn't start a thread twice.  Both
fixes are needed.  I will now have a think about what is the cleanest
way to implement these fixes.

Cheers,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to