Subject: Re: Threading problems
To: Eric Haszlakiewicz <erh@jodi.nimenees.com>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 11/24/2004 14:53:22
--BRE3mIcgqKzpedwo
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 24, 2004 at 04:03:44PM -0600, Eric Haszlakiewicz wrote:
>=20
> 	So the app needs to be rewritten to use the threadlib functions. ugh.
> I thought that libc had weak aliases for the pthread functions, but I
> just realized that it has weak aliases for it's own internal threading
> functions instead. (why?)

So that the right thing happens for a pthread and a non-pthread program.=20
Other OSs have libc and libc_r. We didn't want to do that, and this=20
behavior lets us.

> 	Could we have a define that turns the functions in pthread.h into=20
> aliases for those in threadlib.h?  That could make fixing modules that
> currently link against pthread easier.  e.g.

I don't think that'd be a good idea. If you're using pthread.h, you're=20
using libpthread, not threadlib.

Take care,

Bill

--BRE3mIcgqKzpedwo
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFBpRDiWz+3JHUci9cRAqiAAKCTnqvJHwTOiEYrlq5H7j2WgsW4+ACffjri
6NqWd8i1u8bBiaurfkFTurs=
=NZMB
-----END PGP SIGNATURE-----

--BRE3mIcgqKzpedwo--