This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: recursive mutex?
- To: libstdc++ at gcc dot gnu dot org
- Subject: Re: recursive mutex?
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Wed, 17 Oct 2001 20:39:51 -0500 (CDT)
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
>> I need a recursive mutex lock, but it seems the STL/libstdc++ doesn't
>> already have one. Or do I miss something?
> It's funny because I just came across this with Forte C++ on Solaris. It
> seems Solaris 2.8 and 2.7 pthreads implementation have an option for
> recursive on the pthreads mutex, but Solaris 2.6 (and older I assume) does
> not.
>
> Is this system-specific? And/or maybe something introduced in a recent
> revision of pthreads that wasn't in earlier versions?
According to the POSIX standard, the recursive mutex is an option.
The gthr.h abstraction layer, which STL/libstdc++ uses, does not offer
a recursive mutex.
Regards,
Loren