Hi Guys,

If recursive locks are now available for pthreads + sproc then porting
ReentrantMutex across to using them would be better than a hand
implementation of this feature.

In the meantime I'll review Michael's changes as a temporary fix.

Robert.

On Wed, Mar 11, 2009 at 12:17 PM, Mathias Fröhlich
<[email protected]> wrote:
>
> Hi,
>
> On Wednesday 11 March 2009 12:53, Michael Platings wrote:
>> N.B. The most robust solution would be to simply not use ReentrantMutex!
>> On Windows ReentrantMutex is unnecessary as critical sections already
>> allow recursion. On pthreads we need only call
>> pthread_mutexattr_settype(&mutex_attr,PTHREAD_MUTEX_RECURSIVE) when
>> initialising a mutex to make it allow recursion. However I don't know
>> about sproc.
> I was not sure about recursive locks being included in the posix standard.
> Looking at opengroup.org, it appears to me that this is now standard.
>
> I will contribute this time the other way round.
> I have recursive posix mutexes available on solaris 8, hpux-11.1, irix 6.5 and
> aix-5.3. sprocs - I never tried that appart from compile tests for osg.
> Linux has of course ...
>
> Greetings
>
> Mathias
>
> --
> Dr. Mathias Fröhlich, science + computing ag, Software Solutions
> Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
> Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
> --
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Roland Niemeier,
> Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Michel Lepert
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to