Subject: Re: __libc_mutex initialization
To: Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: current-users
Date: 06/16/2004 13:34:58
Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp> writes:

> Is it possbile to set __libc_mutex_* functions to pthread_mutex_* functions
> inside of pthread_init() instead of the link time?
>
> I think this fixes number of problems reported in tech-pkg (if possible).

The reason this was done was to permit the continued use of
third-party packages that implement versions of the pthread_*
functions, such as pth and ptl2. 

It may be worth investigating a mechanism whereby a program or library
that includes the system pthread.h header is guaranteed to get the
libc/libpthread versions, however (such as a set of #define's in the
system pthread.h).

       - Nathan