Subject: Re: Runtime loading of libpthread
To: Nathan J. Williams <firstname.lastname@example.org>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
Date: 12/22/2003 17:52:44
Nathan J. Williams wrote:
> Is there a particular application you're encountering that requires
> this? I would say that the general philosophy for libraries that want
> to be thread-safe but not create their own threads is to use the
> thread.h cpp indirection layer and then let the application's use or
> non-use of threads drive the binding of those routines.
So is <threadlib.h> supposed to be used by 3rd party programs?
E.g. openldap and libxml2 packages can make use of it then,
they have optional thread-safety hooks, but need to be usable
from both threaded and non-threaded apps - classing example
php4 module in apache 1.3.x vs apache 2.0.x.
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-