Home
last modified time | relevance | path

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

/bionic/libstdc++/src/
Done_time_construction.cpp76 if (__bionic_cmpxchg(0, pending, &gv->state) == 0) { in __cxa_guard_acquire()
80 __bionic_cmpxchg(pending, waiting, &gv->state); // Indicate there is a waiter in __cxa_guard_acquire()
96 if (__bionic_cmpxchg(pending, ready, &gv->state) == 0) { in __cxa_guard_release()
/bionic/libc/private/
Dbionic_atomic_gcc_builtin.h31 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() function
Dbionic_atomic_x86.h42 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() function
Dbionic_atomic_arm.h140 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() function
173 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() function
Dbionic_atomic_mips.h42 __bionic_cmpxchg(int32_t old_value, int32_t new_value, volatile int32_t* ptr) in __bionic_cmpxchg() function
/bionic/libc/bionic/
Dsemaphore.c177 while (__bionic_cmpxchg((int)(old|shared), in __sem_dec()
201 while (__bionic_cmpxchg((int)(old|shared), in __sem_trydec()
238 while ( __bionic_cmpxchg((int)(old|shared), in __sem_inc()
Dpthread.c705 while ( __bionic_cmpxchg( flags, flags | PTHREAD_ATTR_FLAG_DETACHED, in pthread_detach()
1052 if (__bionic_cmpxchg(unlocked, locked_uncontended, &mutex->value) != 0) { in _normal_lock()
1167 if (__likely(__bionic_cmpxchg(mvalue, newval, &mutex->value) == 0)) { in _recursive_increment()
1210 if (__bionic_cmpxchg(mvalue, newval, &mutex->value) == 0) { in pthread_mutex_lock_impl()
1233 if (__unlikely(__bionic_cmpxchg(mvalue, newval, &mutex->value) != 0)) { in pthread_mutex_lock_impl()
1245 if (__unlikely(__bionic_cmpxchg(mvalue, newval, &mutex->value) != 0)) { in pthread_mutex_lock_impl()
1303 if (__likely(__bionic_cmpxchg(mvalue, newval, &mutex->value) == 0)) { in pthread_mutex_unlock_impl()
1355 if (__bionic_cmpxchg(shared|MUTEX_STATE_BITS_UNLOCKED, in pthread_mutex_trylock_impl()
1377 if (__likely(__bionic_cmpxchg(mtype, mvalue, &mutex->value) == 0)) { in pthread_mutex_trylock_impl()
1458 if (__bionic_cmpxchg(unlocked, locked_uncontended, &mutex->value) == 0) { in pthread_mutex_lock_timeout_np_impl()
[all …]