Hi JP, On 15. Feb 2010, at 9:00, J.P. Delport wrote:
> if I remember correctly, the ReentrantMutex came into existence because on > Windows the normal Mutex was reentrant (a single thread could lock it more > than once). So ReentrantMutex was created to make a consistent mutex on all > platforms... That may be so. The issue at hand is that the ReentrantMutex on pthreads only works if your threads are created using OpenThreads (it uses Thread::CurrentThread() which requires some TLS created by Thread::start()). Since in my case the render threads are already running, this mutex deadlocks. A plain Mutex doesn't need all this and works correctly. In this use case the mutex does not need to be reentrant. Obviously it doesn't hurt if it is, so imo the change is ok. Cheers, Stefan. -- http://www.eyescale.ch http://www.equalizergraphics.com http://www.linkedin.com/in/eilemann _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

