This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: RFC: PATCH for thread-safe C++ static local initialization


Jason Merrill writes:

> This is a patch to implement/use the C++ ABI interface for thread-safe
> initialization of local statics.  The use generates code something like
[...]

Sweet!  This will simplify various aspects of libstdc++-v3 initialization.

> How do people feel about extending the gthr interface to either support
> recursive mutexes (emulating in the gthr-* file if necessary) or thread_id,
> or both?

When using a thread abstraction which would directly support recursive
mutexes, it seems much better to use it than emulate it.

Regards,
Loren


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