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]

Small pthread.h problem.


There are no macros for the mutex type enumeration constants:
PTHREAD_MUTEX_TIMED_NP and so on.  Therefore one cannot use, for
instance, a test like

#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




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