Home
last modified time | relevance | path

Searched refs:memory_order_acquire (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/bionic/
D__cxa_guard.cpp82 int old_value = atomic_load_explicit(&gv->state, memory_order_acquire); in __cxa_guard_acquire()
93 memory_order_acquire /* or relaxed in C++17 */, in __cxa_guard_acquire()
94 memory_order_acquire)) { in __cxa_guard_acquire()
101 memory_order_acquire /* or relaxed in C++17 */, in __cxa_guard_acquire()
102 memory_order_acquire)) { in __cxa_guard_acquire()
108 old_value = atomic_load_explicit(&gv->state, memory_order_acquire); in __cxa_guard_acquire()
Dpthread_once.cpp54 int old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once()
65 memory_order_acquire, memory_order_acquire)) { in pthread_once()
83 old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once()
Dpthread_barrier.cpp120 while(atomic_load_explicit(&barrier->state, memory_order_acquire) == RELEASE) { in pthread_barrier_wait()
154 while (atomic_load_explicit(&barrier->state, memory_order_acquire) == WAIT) { in pthread_barrier_wait()
175 while (atomic_load_explicit(&barrier->state, memory_order_acquire) == RELEASE) { in pthread_barrier_destroy()
Dpthread_mutex.cpp282 locked_uncontended, memory_order_acquire, memory_order_relaxed))) { in __pthread_normal_mutex_trylock()
326 memory_order_acquire) != unlocked) { in __pthread_normal_mutex_lock()
452 locked_uncontended, memory_order_acquire, memory_order_relaxed))) { in __pthread_mutex_lock_with_timeout()
470 memory_order_acquire, in __pthread_mutex_lock_with_timeout()
612 memory_order_acquire, in pthread_mutex_trylock()
Dpthread_key.cpp94 atomic_thread_fence(memory_order_acquire); in pthread_key_clean_all()
Dpthread_rwlock.cpp282 memory_order_acquire, memory_order_relaxed))) { in __pthread_rwlock_tryrdlock()
353 __state_add_writer_flag(old_state), memory_order_acquire, memory_order_relaxed))) { in __pthread_rwlock_trywrlock()
Dsystem_properties.cpp1148 return atomic_load_explicit(pa->serial(), memory_order_acquire); in __system_property_area_serial()
1185 atomic_thread_fence(memory_order_acquire); in __system_property_read()
1217 atomic_thread_fence(memory_order_acquire); in __system_property_read_callback()
1404 uint32_t serial = load_const_atomic(&pi->serial, memory_order_acquire); in __system_property_serial()
1407 serial = load_const_atomic(&pi->serial, memory_order_acquire); in __system_property_serial()
1437 new_serial = load_const_atomic(serial_ptr, memory_order_acquire); in __system_property_wait()
/bionic/libc/private/
Dbionic_lock.h56 LockedWithoutWaiter, memory_order_acquire, memory_order_relaxed)); in trylock()
62 LockedWithoutWaiter, memory_order_acquire, memory_order_relaxed))) { in lock()
65 while (atomic_exchange_explicit(&state, LockedWithWaiter, memory_order_acquire) != Unlocked) { in lock()
/bionic/benchmarks/
Datomic_benchmark.cpp66 result += test_loc.load(std::memory_order_acquire); in BM_load_acquire()
118 std::atomic_thread_fence(std::memory_order_acquire); in BM_acquire_fence()
/bionic/tests/
Dstdatomic_test.cpp51 atomic_thread_fence(memory_order_acquire); in TEST()
60 atomic_signal_fence(memory_order_acquire); in TEST()
218 yval = atomic_load_explicit(&a->y, memory_order_acquire); in reader()
/bionic/libc/include/
Dstdatomic.h89 using std::memory_order_acquire;
251 memory_order_acquire = __ATOMIC_ACQUIRE, enumerator