Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dpthread.c770 #define MUTEX_COUNTER_MASK 0x1ffc macro
1062 counter = (oldv + (1 << MUTEX_COUNTER_SHIFT)) & MUTEX_COUNTER_MASK; in pthread_mutex_lock()
1063 mutex->value = (oldv & ~MUTEX_COUNTER_MASK) | counter; in pthread_mutex_lock()
1132 if (oldv & MUTEX_COUNTER_MASK) { in pthread_mutex_unlock()
1182 counter = (oldv + (1 << MUTEX_COUNTER_SHIFT)) & MUTEX_COUNTER_MASK; in pthread_mutex_trylock()
1183 mutex->value = (oldv & ~MUTEX_COUNTER_MASK) | counter; in pthread_mutex_trylock()
1288 counter = (oldv + (1 << MUTEX_COUNTER_SHIFT)) & MUTEX_COUNTER_MASK; in pthread_mutex_lock_timeout_np()
1289 mutex->value = (oldv & ~MUTEX_COUNTER_MASK) | counter; in pthread_mutex_lock_timeout_np()