HI David,

Original pthread implementations didn't support recursion so
OpenThreads was built around this.  These days would could probably
safely enable it and deprecate the ReentrantMutex which won't be as
efficient as using pthreads.

Feel fee to dive in and add support for the recursive mutex under pthreads :-)

Robert.

On Thu, May 7, 2009 at 7:50 PM, David Guthrie <dguth...@alionscience.com> wrote:
> Hi,
>
> The Pthreads implementation of the mutex doesn't set it to be a recursive 
> mutex, so if you try to lock the same mutex on the same thread again, it will 
> deadlock.  The windows critical section, however, allows this.  It seems like 
> it would be best to mark the pthread mutex to allow recursion so that this 
> case functions the same across platforms.  Does anyone know of a reason why 
> this is NOT a good idea?
>
> Thank you!
> David Guthrie
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=11641#11641
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to