Home
last modified time | relevance | path

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

/bionic/libc/bionic/
D__cxa_guard.cpp113 int old_value = atomic_exchange_explicit(&gv->state, CONSTRUCTION_COMPLETE, memory_order_release); in __cxa_guard_release()
122 …int old_value = atomic_exchange_explicit(&gv->state, CONSTRUCTION_NOT_YET_STARTED, memory_order_re… in __cxa_guard_abort()
Dpthread_mutex.cpp605 while (atomic_exchange_explicit(&mutex->state, locked_contended, in NormalMutexLock()
629 if (atomic_exchange_explicit(&mutex->state, unlocked, in NormalMutexUnlock()
892 old_state = atomic_exchange_explicit(&mutex->state, unlocked, memory_order_release); in pthread_mutex_unlock()
/bionic/libc/private/
Dbionic_lock.h65 while (atomic_exchange_explicit(&state, LockedWithWaiter, memory_order_acquire) != Unlocked) { in lock()
74 if (atomic_exchange_explicit(&state, Unlocked, memory_order_release) == LockedWithWaiter) { in unlock()
/bionic/libc/include/bits/
Dstdatomic.h215 #define atomic_exchange_explicit(object, desired, order) \ macro
243 atomic_exchange_explicit(object, desired, memory_order_seq_cst)
273 return (atomic_exchange_explicit(&__object->__flag, 1, __order)); in atomic_flag_test_and_set_explicit()
/bionic/libc/include/
Dstdatomic.h64 using std::atomic_exchange_explicit;
/bionic/tests/
Dstdatomic_test.cpp101 ASSERT_EQ(456, atomic_exchange_explicit(&i, 123, memory_order_relaxed)); in TEST()