Home
last modified time | relevance | path

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

/bionic/libc/bionic/
D__cxa_guard.cpp81 if (__bionic_cmpxchg(0, pending, &gv->state) == 0) { in __cxa_guard_acquire()
85 __bionic_cmpxchg(pending, waiting, &gv->state); // Indicate there is a waiter in __cxa_guard_acquire()
102 if (__bionic_cmpxchg(pending, ready, &gv->state) == 0) { in __cxa_guard_release()
Dpthread_mutex.cpp318 if (__bionic_cmpxchg(unlocked, locked_uncontended, &mutex->value) != 0) { in _normal_lock()
430 if (__predict_true(__bionic_cmpxchg(mvalue, newval, &mutex->value) == 0)) { in _recursive_increment()
474 if (__bionic_cmpxchg(mvalue, newval, &mutex->value) == 0) { in pthread_mutex_lock()
497 if (__predict_false(__bionic_cmpxchg(mvalue, newval, &mutex->value) != 0)) { in pthread_mutex_lock()
509 if (__predict_false(__bionic_cmpxchg(mvalue, newval, &mutex->value) != 0)) { in pthread_mutex_lock()
555 if (__predict_true(__bionic_cmpxchg(mvalue, newval, &mutex->value) == 0)) { in pthread_mutex_unlock()
592 if (__bionic_cmpxchg(shared|MUTEX_STATE_BITS_UNLOCKED, in pthread_mutex_trylock()
614 if (__predict_true(__bionic_cmpxchg(mtype, mvalue, &mutex->value) == 0)) { in pthread_mutex_trylock()
636 if (__bionic_cmpxchg(unlocked, locked_uncontended, &mutex->value) == 0) { in __pthread_mutex_timedlock()
666 if (__predict_true(__bionic_cmpxchg(mtype, mvalue, &mutex->value) == 0)) { in __pthread_mutex_timedlock()
[all …]
Dpthread_once.cpp71 } while (__bionic_cmpxchg(old_value, new_value, once_control_ptr) != 0); in pthread_once()
Dsemaphore.c174 while (__bionic_cmpxchg((int)(old|shared), in __sem_dec()
198 while (__bionic_cmpxchg((int)(old|shared), in __sem_trydec()
235 while ( __bionic_cmpxchg((int)(old|shared), in __sem_inc()
Dpthread_cond.cpp132 if (__bionic_cmpxchg(old_value, new_value, &cond->value) == 0) { in __pthread_cond_pulse()
/bionic/libc/private/
Dbionic_atomic_gcc_builtin.h32 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() function
Dbionic_atomic_x86.h35 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() function
Dbionic_atomic_arm64.h28 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() function
Dbionic_atomic_arm.h32 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() function
Dbionic_atomic_mips.h36 __ATOMIC_INLINE__ int __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr)… in __bionic_cmpxchg() function