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


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