[PATCH] Threadsafe locale initialization
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Thu Oct 2 20:50:00 GMT 2003
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
More information about the Libstdc++
mailing list