Searched refs:owner_tid (Results 1 – 1 of 1) sorted by relevance
/bionic/libc/bionic/ |
D | pthread_mutex.cpp | 219 atomic_int owner_tid; member 222 _Atomic(uint16_t) owner_tid; 268 atomic_init(&mutex->owner_tid, 0); in pthread_mutex_init() 412 static_assert(offsetof(pthread_mutex_internal_t, owner_tid) == 2, ""); in __recursive_or_errorcheck_mutex_wait() 414 uint32_t owner_tid = atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed); in __recursive_or_errorcheck_mutex_wait() 415 return __futex_wait_ex(&mutex->state, shared, (owner_tid << 16) | old_state, rel_timeout); in __recursive_or_errorcheck_mutex_wait() 432 if (tid == atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed)) { in __pthread_mutex_lock_with_timeout() 450 atomic_store_explicit(&mutex->owner_tid, tid, memory_order_relaxed); in __pthread_mutex_lock_with_timeout() 469 atomic_store_explicit(&mutex->owner_tid, tid, memory_order_relaxed); in __pthread_mutex_lock_with_timeout() 545 if ( tid != atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed) ) { in pthread_mutex_unlock() [all …]
|