Lines 59-65
mono_os_mutex_init_type (mono_mutex_t *mutex, int type)
Link Here
|
59 |
if (G_UNLIKELY (res != 0)) |
59 |
if (G_UNLIKELY (res != 0)) |
60 |
g_error ("%s: pthread_mutexattr_settype failed with \"%s\" (%d)", __func__, g_strerror (res), res); |
60 |
g_error ("%s: pthread_mutexattr_settype failed with \"%s\" (%d)", __func__, g_strerror (res), res); |
61 |
|
61 |
|
62 |
#if !defined(__HAIKU__) && defined (PTHREAD_PRIO_INHERIT) && HAVE_DECL_PTHREAD_MUTEXATTR_SETPROTOCOL |
62 |
#if !defined(__HAIKU__) && !defined(MUSL) && defined (PTHREAD_PRIO_INHERIT) && HAVE_DECL_PTHREAD_MUTEXATTR_SETPROTOCOL |
63 |
/* use PTHREAD_PRIO_INHERIT if possible */ |
63 |
/* use PTHREAD_PRIO_INHERIT if possible */ |
64 |
res = pthread_mutexattr_setprotocol (&attr, PTHREAD_PRIO_INHERIT); |
64 |
res = pthread_mutexattr_setprotocol (&attr, PTHREAD_PRIO_INHERIT); |
65 |
if (G_UNLIKELY (res != 0 && res != ENOTSUP)) |
65 |
if (G_UNLIKELY (res != 0 && res != ENOTSUP)) |