[Patch] Tweak gthr-posix.h for pthread_create() Interceptors

Jason Merrill jason@redhat.com
Fri Oct 29 06:44:00 GMT 2004


On Thu, 28 Oct 2004 11:55:11 -0700, "Boehm, Hans" <hans.boehm@hp.com> wrote:

> Can some glibc experts comment?  Does it make sense to test
> pthread_cond_wait instead, since that probably can't be usefully stubbed
> in a single-threaded world, and is much less likely to be intercepted?

I'm not a glibc expert, but that makes sense to me.

> If not, would a safer approach be to define a symbol like
> __pthread_loaded in various libpthread implementations, which could then
> be used precisely for this test.  But this obviously requires help from
> the glibc folks.

And all other vendors.  I don't think this is feasible.

Jason



More information about the Gcc-patches mailing list