Home
last modified time | relevance | path

Searched refs:mutex_kind (Results 1 – 5 of 5) sorted by relevance

/glibc-2.36/nptl/
Dpthread_mutex_init.c92 int mutex_kind = imutexattr->mutexkind & ~PTHREAD_MUTEXATTR_FLAG_BITS; in ___pthread_mutex_init() local
102 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()
Dpthread_mutex_lock.c381 int mutex_kind = atomic_load_relaxed (&(mutex->__data.__kind)); in __pthread_mutex_lock_full() local
382 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() local
650 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()
Dpthread_mutex_trylock.c222 int mutex_kind = atomic_load_relaxed (&(mutex->__data.__kind)); in ___pthread_mutex_trylock() local
223 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()
Dpthread_mutex_timedlock.c305 int mutex_kind = atomic_load_relaxed (&(mutex->__data.__kind)); in __pthread_mutex_clocklock_common() local
306 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()
/glibc-2.36/sysdeps/nptl/
Dlowlevellock.h251 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) \