This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Threadsafe locale initialization
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: peturr02 at ru dot is
- Cc: bkoz at redhat dot com, libstdc++ at gcc dot gnu dot org
- Date: Thu, 2 Oct 2003 15:33:10 -0500 (CDT)
- Subject: Re: [PATCH] Threadsafe locale initialization
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028F55D9@mail.ru.is>
- Reply-to: rittle at labs dot mot dot com
In article <07D05A69A3D0C14FAEA60C3ACE8E5564028F55D9@mail.ru.is>,
Pétur Runólfsson<peturr02@ru.is> writes:
> So it seems that __gthread_active_p() can return 0 under some
> conditions (although I'm not quite sure which).
It can return 0 whenever the system supports weak symbols (ala ELF),
the program/library was compiled to support threads yet the thread
library was not in fact linked into the final image.
> I agree, except that __gthread_mutex_[un]lock must be wrapped in
> an exception safe lock class.
This is a good observation...