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: [Patch] Tweak gthr-posix.h for pthread_create() Interceptors


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


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