Don't use pthread_mutexattr_setprotocol() on Cygwin targets as

PTHREAD_PRIO_INHERIT is not defined correctly and it probably wouldn't
work as expected anyway.
This commit is contained in:
gbeauche 2004-11-14 23:23:07 +00:00
parent adf82c8f45
commit cb99e7673d

View File

@ -900,7 +900,7 @@ struct B2_mutex {
pthread_mutexattr_init(&attr);
// Initialize the mutex for priority inheritance --
// required for accurate timing.
#ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
#if defined(HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL) && !defined(__CYGWIN__)
pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
#endif
#if defined(HAVE_PTHREAD_MUTEXATTR_SETTYPE) && defined(PTHREAD_MUTEX_NORMAL)