This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Small pthread.h problem.


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]