Searched refs:mutex_kind (Results 1 – 5 of 5) sorted by relevance
92 int mutex_kind = imutexattr->mutexkind & ~PTHREAD_MUTEXATTR_FLAG_BITS; in ___pthread_mutex_init() local102 mutex_kind |= PTHREAD_MUTEX_ROBUST_NORMAL_NP; in ___pthread_mutex_init()108 mutex_kind |= PTHREAD_MUTEX_PRIO_INHERIT_NP; in ___pthread_mutex_init()112 mutex_kind |= PTHREAD_MUTEX_PRIO_PROTECT_NP; in ___pthread_mutex_init()136 mutex_kind |= PTHREAD_MUTEX_PSHARED_BIT; in ___pthread_mutex_init()140 atomic_store_relaxed (&(mutex->__data.__kind), mutex_kind); in ___pthread_mutex_init()
381 int mutex_kind = atomic_load_relaxed (&(mutex->__data.__kind)); in __pthread_mutex_lock_full() local382 kind = mutex_kind & PTHREAD_MUTEX_KIND_MASK_NP; in __pthread_mutex_lock_full()383 robust = mutex_kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP; in __pthread_mutex_lock_full()649 int mutex_kind = atomic_load_relaxed (&(mutex->__data.__kind)); in __pthread_mutex_cond_lock_adjust() local650 assert ((mutex_kind & PTHREAD_MUTEX_PRIO_INHERIT_NP) != 0); in __pthread_mutex_cond_lock_adjust()651 assert ((mutex_kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP) == 0); in __pthread_mutex_cond_lock_adjust()652 assert ((mutex_kind & PTHREAD_MUTEX_PSHARED_BIT) == 0); in __pthread_mutex_cond_lock_adjust()658 if (mutex_kind == PTHREAD_MUTEX_PI_RECURSIVE_NP) in __pthread_mutex_cond_lock_adjust()
222 int mutex_kind = atomic_load_relaxed (&(mutex->__data.__kind)); in ___pthread_mutex_trylock() local223 kind = mutex_kind & PTHREAD_MUTEX_KIND_MASK_NP; in ___pthread_mutex_trylock()224 robust = mutex_kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP; in ___pthread_mutex_trylock()
305 int mutex_kind = atomic_load_relaxed (&(mutex->__data.__kind)); in __pthread_mutex_clocklock_common() local306 kind = mutex_kind & PTHREAD_MUTEX_KIND_MASK_NP; in __pthread_mutex_clocklock_common()307 robust = mutex_kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP; in __pthread_mutex_clocklock_common()
251 int mutex_kind = atomic_load_relaxed (&((m)->__data.__kind)); \252 if ((mutex_kind & PTHREAD_MUTEX_ELISION_FLAGS_NP) == 0) \254 mutex_kind |= PTHREAD_MUTEX_ELISION_NP; \255 atomic_store_relaxed (&((m)->__data.__kind), mutex_kind); \257 if ((mutex_kind & PTHREAD_MUTEX_ELISION_NP) != 0) \