Subject: Re: is PT_STACKSIZE too small?
To: Love <lha@stacken.kth.se>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-userlevel
Date: 06/25/2003 18:27:29
Love <lha@stacken.kth.se> writes:

> "Nathan J. Williams" <nathanw@wasabisystems.com> writes:
> 
> > Jason Thorpe <thorpej@wasabisystems.com> writes:
> >
> >> I suppose my biggest question here is: Why does ThreadedX=yes cause
> >> libpthread to be pulled in?  ThreadedX is supposed to be using the
> >> <threadlib.h> stubs.
> >
> > On a related note, I've started wondering if the layer of
> > pseudo-abstraction provided by <threadlib.h> is worthwhile. 
> [...]
> > Having another
> > set of names that will, as far as I can tell, always map to pthreads
> > seems silly.
> 
> I think the property they give are worth while . IE libraries always can use
> thread primities and application decides if it wants -pthread or not.

That property is definitely valuable. However, even currently that is
being accomplished with a set of weak stubs for *p*thread routines in
libc - the threadlib stuff is only operating at the preprocessor level.

        - Nathan