mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-28 14:33:32 +00:00
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:
parent
adf82c8f45
commit
cb99e7673d
@ -900,7 +900,7 @@ struct B2_mutex {
|
|||||||
pthread_mutexattr_init(&attr);
|
pthread_mutexattr_init(&attr);
|
||||||
// Initialize the mutex for priority inheritance --
|
// Initialize the mutex for priority inheritance --
|
||||||
// required for accurate timing.
|
// required for accurate timing.
|
||||||
#ifdef HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
|
#if defined(HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL) && !defined(__CYGWIN__)
|
||||||
pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
|
pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_PTHREAD_MUTEXATTR_SETTYPE) && defined(PTHREAD_MUTEX_NORMAL)
|
#if defined(HAVE_PTHREAD_MUTEXATTR_SETTYPE) && defined(PTHREAD_MUTEX_NORMAL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user