This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Small pthread.h problem.
- To: <libc-alpha at sources dot redhat dot com>
- Subject: Small pthread.h problem.
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Thu, 22 Feb 2001 11:02:21 -0800 (PST)
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