This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: PATCH for thread-safe C++ static local initialization
- From: Loren James Rittle <rittle at latour dot waar dot labs dot mot dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc:
- Date: Fri, 20 Aug 2004 18:04:40 -0500 (CDT)
- Subject: Re: RFC: PATCH for thread-safe C++ static local initialization
- Organization: Applications, Content and Services CoE (IL02/2240), Motorola Labs
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