This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Small pthread.h problem.
- To: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Subject: Re: Small pthread.h problem.
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 25 Feb 2001 08:03:16 -0800
- Cc: <libc-alpha at sources dot redhat dot com>
- References: <Pine.LNX.4.30.0102221058020.11308-100000@ashi.FootPrints.net>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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 `------------------------