Home
last modified time | relevance | path

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

/aosp12/bionic/libc/private/
H A 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()
/aosp12/bionic/libc/bionic/
H A 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()
H A 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()
/aosp12/system/core/libstats/push_compat/
H A Dstatsd_writer.c152 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 Dstatsd_writer.c169 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 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()
/aosp12/bionic/libc/include/
H A Dstdatomic.h64 using std::atomic_exchange_explicit;
/aosp12/system/logging/liblog/
H A Dlogd_writer.cpp151 int32_t snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in LogdWrite()
/aosp12/bionic/tests/
H A Dstdatomic_test.cpp101 ASSERT_EQ(456, atomic_exchange_explicit(&i, 123, memory_order_relaxed)); in TEST()