This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Threadsafe locale initialization


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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]