Searched refs:atomic_exchange_explicit (Results 1 – 6 of 6) sorted by relevance
/bionic/libc/bionic/ |
D | __cxa_guard.cpp | 113 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()
|
D | pthread_mutex.cpp | 605 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/ |
D | bionic_lock.h | 65 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/ |
D | stdatomic.h | 215 #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/ |
D | stdatomic.h | 64 using std::atomic_exchange_explicit;
|
/bionic/tests/ |
D | stdatomic_test.cpp | 101 ASSERT_EQ(456, atomic_exchange_explicit(&i, 123, memory_order_relaxed)); in TEST()
|