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: bkoz at redhat dot com
- Cc: peturr02 at ru dot is, libstdc++ at gcc dot gnu dot org
- Date: Thu, 2 Oct 2003 15:50:42 -0500 (CDT)
- Subject: Re: [PATCH] Threadsafe locale initialization
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028D0E3D@mail.ru.is> <20031001185350.02539a5b.bkoz@redhat.com>
- Reply-to: rittle at labs dot mot dot com
In article <20031001185350.02539a5b.bkoz@redhat.com>,
Benjamin Kosnik<bkoz@redhat.com> writes:
>> This is needed so that locale can be initialized at any time during
>> program execution, and so that facets can be constructed before
>> locale::classic() is called. This means that locale no longer
>> depends on iostreams being initialized at the beginning of the
>> program.
> Loren, any thoughts?
I see it is already in. ;) It is unfortunate but
__gthread_once(...,func) indeed returns an error instead of just
directly running func when __gthread_active_p()==0. I see you have
already fixed that based on other feedback.
I only eyed the rest of the patch.
Loren