Searched refs:atomic_exchange_explicit (Results 1 – 9 of 9) sorted by relevance
/aosp12/bionic/libc/private/ |
H A 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()
|
/aosp12/bionic/libc/bionic/ |
H A 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()
|
H A 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()
|
/aosp12/system/core/libstats/push_compat/ |
H A D | statsd_writer.c | 152 atomic_exchange_explicit(&log_error, error, memory_order_relaxed); in statsdNoteDrop() 153 atomic_exchange_explicit(&atom_tag, tag, memory_order_relaxed); in statsdNoteDrop() 200 int32_t snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in statsdWrite()
|
/aosp12/packages/modules/StatsD/lib/libstatssocket/ |
H A D | statsd_writer.c | 169 atomic_exchange_explicit(&log_error, error, memory_order_relaxed); in statsdNoteDrop() 170 atomic_exchange_explicit(&atom_tag, tag, memory_order_relaxed); in statsdNoteDrop() 224 int32_t snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in statsdWrite()
|
/aosp12/bionic/libc/include/bits/ |
H A 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()
|
/aosp12/bionic/libc/include/ |
H A D | stdatomic.h | 64 using std::atomic_exchange_explicit;
|
/aosp12/system/logging/liblog/ |
H A D | logd_writer.cpp | 151 int32_t snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in LogdWrite()
|
/aosp12/bionic/tests/ |
H A D | stdatomic_test.cpp | 101 ASSERT_EQ(456, atomic_exchange_explicit(&i, 123, memory_order_relaxed)); in TEST()
|