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: kaih at khms dot westfalen dot de (Kai Henningsen)
- To: gcc-patches at gcc dot gnu dot org
- Date: 22 Aug 2004 10:02:00 +0200
- Subject: Re: RFC: PATCH for thread-safe C++ static local initialization
- Comment: Unsolicited commercial mail will incur an US$100 handling fee per received mail.
- Organization: Organisation? Me?! Are you kidding?
- References: <xyp3c2hr2zw.fsf@miranda.boston.redhat.com>
jason@redhat.com (Jason Merrill) wrote on 20.08.04 in <xyp3c2hr2zw.fsf@miranda.boston.redhat.com>:
> However, the current gthr interface doesn't actually support recursive
> mutexes; I don't think appropriate APIs exist on all targets. It's
> possible to emulate a recursive mutex, as I do in this patch, but my
> emulation relies on being able to request a unique identifier for the
> current thread, which is also not part of the gthr interface--though it is
> part of the objc thread interface.
Are there good reasons not to unify those interfaces? They certainly look
as if they started by one being cloned from the other anyway.
MfG Kai