Small pthread.h problem.
Ulrich Drepper
drepper@redhat.com
Sun Feb 25 08:03:00 GMT 2001
Kaz Kylheku <kaz@ashi.footprints.net> writes:
> #ifdef PTHREAD_MUTEX_ADAPTIVE_NP
>
> to detect the presence of a particular lock type. The workaround is to
> test for the corresponding static initializer instead:
>
> #ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
I really wish nobody ever does any tests like this. It'll definitely
change in future and will create only problems. Adding such macros
would only encourage this kind of use.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-alpha
mailing list