Subject: Re: xsrc/28630: Reachover X11 is missing phtread library.
To: James Chacon <jmc@NetBSD.org>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-x11
Date: 12/13/2004 15:44:27
James Chacon <jmc@NetBSD.org> writes:

> But in that case aren't they just using the libc "do nothing" stubs? Or is
> the X server loading libpthread.so via it's dynamic loader/dlopen?
> 
> Hmmm...ok, looking it appears thread enabled X apps have to call into Xlib/Xt
> to say "do threading". So, just the apps are responsible for getting 
> libpthread linked in?

A thread-enabled X app will have the real libpthread linked in, and
this will cause Xlib/Xt to call the real pthread functions instead of
the stubs. The whole goal here is to make the application that is
threaded the only point where libpthread needs to be linked in.

        - Nathan