Weak pthread function

Roland McGrath roland@frob.com
Fri Sep 4 11:01:00 GMT 1998


> libobjc.a uses pthread_key_create, pthread_create, pthread_setspecific,
> thread_getspecific and pthread_mutex_trylock. We should provide them
> in libc as weak functions.

Why doesn't libobjc.a use them with weak externs and handle their absence?
This seems like a slippery slope of defining stubs in libc for an arbitrary
number of functions from libpthreads.



More information about the Libc-hacker mailing list