Lines Matching refs:shared

276                                                                  uint16_t shared) {  in __pthread_normal_mutex_trylock()  argument
277 const uint16_t unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in __pthread_normal_mutex_trylock()
278 const uint16_t locked_uncontended = shared | MUTEX_STATE_BITS_LOCKED_UNCONTENDED; in __pthread_normal_mutex_trylock()
301 uint16_t shared, in __pthread_normal_mutex_lock() argument
304 if (__predict_true(__pthread_normal_mutex_trylock(mutex, shared) == 0)) { in __pthread_normal_mutex_lock()
314 const uint16_t unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in __pthread_normal_mutex_lock()
315 const uint16_t locked_contended = shared | MUTEX_STATE_BITS_LOCKED_CONTENDED; in __pthread_normal_mutex_lock()
327 if (__futex_wait_ex(&mutex->state, shared, locked_contended, use_realtime_clock, in __pthread_normal_mutex_lock()
340 uint16_t shared) { in __pthread_normal_mutex_unlock() argument
341 const uint16_t unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in __pthread_normal_mutex_unlock()
342 const uint16_t locked_contended = shared | MUTEX_STATE_BITS_LOCKED_CONTENDED; in __pthread_normal_mutex_unlock()
369 __futex_wake_ex(&mutex->state, shared, 1); in __pthread_normal_mutex_unlock()
397 uint16_t shared, in __recursive_or_errorcheck_mutex_wait() argument
407 return __futex_wait_ex(&mutex->state, shared, old_state, use_realtime_clock, abs_timeout); in __recursive_or_errorcheck_mutex_wait()
416 return __futex_wait_ex(&mutex->state, shared, (owner_tid << 16) | old_state, in __recursive_or_errorcheck_mutex_wait()
426 uint16_t shared = (old_state & MUTEX_SHARED_MASK); in __pthread_mutex_lock_with_timeout() local
430 return __pthread_normal_mutex_lock(mutex, shared, use_realtime_clock, abs_timeout_or_null); in __pthread_mutex_lock_with_timeout()
442 const uint16_t unlocked = mtype | shared | MUTEX_STATE_BITS_UNLOCKED; in __pthread_mutex_lock_with_timeout()
443 const uint16_t locked_uncontended = mtype | shared | MUTEX_STATE_BITS_LOCKED_UNCONTENDED; in __pthread_mutex_lock_with_timeout()
444 const uint16_t locked_contended = mtype | shared | MUTEX_STATE_BITS_LOCKED_CONTENDED; in __pthread_mutex_lock_with_timeout()
495 if (__recursive_or_errorcheck_mutex_wait(mutex, shared, old_state, use_realtime_clock, in __pthread_mutex_lock_with_timeout()
517 uint16_t shared = (old_state & MUTEX_SHARED_MASK); in pthread_mutex_lock() local
520 if (__predict_true(__pthread_normal_mutex_trylock(mutex, shared) == 0)) { in pthread_mutex_lock()
541 uint16_t shared = (old_state & MUTEX_SHARED_MASK); in pthread_mutex_unlock() local
545 __pthread_normal_mutex_unlock(mutex, shared); in pthread_mutex_unlock()
571 const uint16_t unlocked = mtype | shared | MUTEX_STATE_BITS_UNLOCKED; in pthread_mutex_unlock()
574 __futex_wake_ex(&mutex->state, shared, 1); in pthread_mutex_unlock()
585 uint16_t shared = (old_state & MUTEX_SHARED_MASK); in pthread_mutex_trylock() local
587 const uint16_t unlocked = mtype | shared | MUTEX_STATE_BITS_UNLOCKED; in pthread_mutex_trylock()
588 const uint16_t locked_uncontended = mtype | shared | MUTEX_STATE_BITS_LOCKED_UNCONTENDED; in pthread_mutex_trylock()
592 return __pthread_normal_mutex_trylock(mutex, shared); in pthread_mutex_trylock()