Subject: Re: Threading problems
To: Eric Haszlakiewicz <email@example.com>
From: Bill Studenmund <firstname.lastname@example.org>
Date: 11/24/2004 14:53:22
Content-Type: text/plain; charset=us-ascii
On Wed, Nov 24, 2004 at 04:03:44PM -0600, Eric Haszlakiewicz wrote:
> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
-----END PGP SIGNATURE-----