Home
last modified time | relevance | path

Searched refs:atomic_load_explicit (Results 1 – 25 of 35) sorted by relevance

12

/aosp12/bionic/libc/bionic/
H A Dpthread_key.cpp85 uintptr_t seq = atomic_load_explicit(&key_map[i].seq, memory_order_relaxed); in pthread_key_clean_all()
95 atomic_load_explicit(&key_map[i].key_destructor, memory_order_relaxed)); in pthread_key_clean_all()
100 if (atomic_load_explicit(&key_map[i].seq, memory_order_relaxed) != seq) { in pthread_key_clean_all()
126 uintptr_t seq = atomic_load_explicit(&key_map[i].seq, memory_order_relaxed); in pthread_key_create()
149 uintptr_t seq = atomic_load_explicit(&key_map[key].seq, memory_order_relaxed); in pthread_key_delete()
164 uintptr_t seq = atomic_load_explicit(&key_map[key].seq, memory_order_relaxed); in pthread_getspecific()
183 uintptr_t seq = atomic_load_explicit(&key_map[key].seq, memory_order_relaxed); in pthread_setspecific()
H A Dpthread_barrier.cpp120 while(atomic_load_explicit(&barrier->state, memory_order_acquire) == RELEASE) { in pthread_barrier_wait()
124 uint32_t prev_wait_count = atomic_load_explicit(&barrier->wait_count, memory_order_relaxed); 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()
178 if (atomic_load_explicit(&barrier->wait_count, memory_order_relaxed) != 0) { in pthread_barrier_destroy()
H A Dpthread_rwlock.cpp257 if (atomic_load_explicit(&rwlock->state, memory_order_relaxed) != 0) { in pthread_rwlock_destroy()
273 int old_state = atomic_load_explicit(&rwlock->state, memory_order_relaxed); in __pthread_rwlock_tryrdlock()
291 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedrdlock()
305 int old_state = atomic_load_explicit(&rwlock->state, memory_order_relaxed); in __pthread_rwlock_timedrdlock()
348 int old_state = atomic_load_explicit(&rwlock->state, memory_order_relaxed); in __pthread_rwlock_trywrlock()
363 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) == __get_thread()->tid) { in __pthread_rwlock_timedwrlock()
376 int old_state = atomic_load_explicit(&rwlock->state, memory_order_relaxed); in __pthread_rwlock_timedwrlock()
489 int old_state = atomic_load_explicit(&rwlock->state, memory_order_relaxed); in pthread_rwlock_unlock()
491 if (atomic_load_explicit(&rwlock->writer_tid, memory_order_relaxed) != __get_thread()->tid) { in pthread_rwlock_unlock()
H A Dpthread_mutex.cpp203 old_owner = atomic_load_explicit(&mutex.owner_tid, memory_order_relaxed); in PIMutexUnlock()
713 uint16_t old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); in MutexLockWithTimeout()
724 if (tid == atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed)) { in MutexLockWithTimeout()
788 old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); in MutexLockWithTimeout()
819 uint16_t old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); in pthread_mutex_lock()
853 uint16_t old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); in pthread_mutex_unlock()
871 if ( tid != atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed) ) { in pthread_mutex_unlock()
903 uint16_t old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); in pthread_mutex_trylock()
920 if (tid == atomic_load_explicit(&mutex->owner_tid, memory_order_relaxed)) { in pthread_mutex_trylock()
965 uint16_t old_state = atomic_load_explicit(&mutex->state, memory_order_relaxed); in __pthread_mutex_timedlock()
[all …]
H A Dsemaphore.cpp100 return (atomic_load_explicit(sem_count_ptr, memory_order_relaxed) & SEMCOUNT_SHARED_MASK); in SEM_GET_SHARED()
144 unsigned int old_value = atomic_load_explicit(sem_count_ptr, memory_order_relaxed); in __sem_dec()
164 unsigned int old_value = atomic_load_explicit(sem_count_ptr, memory_order_relaxed); in __sem_trydec()
188 unsigned int old_value = atomic_load_explicit(sem_count_ptr, memory_order_relaxed); in __sem_inc()
H A Dpthread_cond.cpp111 return COND_IS_SHARED(atomic_load_explicit(&state, memory_order_relaxed)); in process_shared()
115 return COND_GET_CLOCK(atomic_load_explicit(&state, memory_order_relaxed)) == CLOCK_REALTIME; in use_realtime_clock()
172 if (atomic_load_explicit(&cond->waiters, memory_order_relaxed) == 0) { in __pthread_cond_pulse()
191 unsigned int old_state = atomic_load_explicit(&cond->state, memory_order_relaxed); in __pthread_cond_timedwait()
H A Dpthread_once.cpp54 int old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once()
83 old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once()
H A Dmalloc_common.h80 return atomic_load_explicit(&__libc_globals->current_dispatch_table, memory_order_acquire); in GetDispatchTable()
84 return atomic_load_explicit(&__libc_globals->default_dispatch_table, memory_order_acquire); in GetDefaultDispatchTable()
H A D__cxa_guard.cpp80 int old_value = atomic_load_explicit(&gv->state, memory_order_acquire); in __cxa_guard_acquire()
106 old_value = atomic_load_explicit(&gv->state, memory_order_acquire); in __cxa_guard_acquire()
H A Dsystem_property_api.cpp109 return atomic_load_explicit(&pi->serial, memory_order_acquire); in __system_property_serial()
/aosp12/bionic/libc/system_properties/
H A Dprop_area.cpp204 uint_least32_t off = atomic_load_explicit(off_p, memory_order_consume); in to_prop_bt()
209 uint_least32_t off = atomic_load_explicit(off_p, memory_order_consume); in to_prop_info()
240 uint_least32_t left_offset = atomic_load_explicit(&current->left, memory_order_relaxed); in find_prop_bt()
256 uint_least32_t right_offset = atomic_load_explicit(&current->right, memory_order_relaxed); in find_prop_bt()
292 uint_least32_t children_offset = atomic_load_explicit(&current->children, memory_order_relaxed); in find_property()
317 uint_least32_t prop_offset = atomic_load_explicit(&current->prop, memory_order_relaxed); in find_property()
337 uint_least32_t left_offset = atomic_load_explicit(&trie->left, memory_order_relaxed); in foreach_property()
342 uint_least32_t prop_offset = atomic_load_explicit(&trie->prop, memory_order_relaxed); in foreach_property()
348 uint_least32_t children_offset = atomic_load_explicit(&trie->children, memory_order_relaxed); in foreach_property()
353 uint_least32_t right_offset = atomic_load_explicit(&trie->right, memory_order_relaxed); in foreach_property()
H A Dsystem_properties.cpp122 return atomic_load_explicit(pa->serial(), memory_order_acquire); in AreaSerial()
248 uint32_t serial = atomic_load_explicit(&pi->serial, memory_order_relaxed); in Update()
266 atomic_load_explicit(serial_pa->serial(), memory_order_relaxed) + 1, in Update()
306 atomic_load_explicit(serial_pa->serial(), memory_order_relaxed) + 1, in Add()
/aosp12/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/
H A Dbroadcast_ring.h205 record_size = std::atomic_load_explicit(&ring.header_mmap()->record_size, in Import()
207 record_count = std::atomic_load_explicit( in Import()
270 return std::atomic_load_explicit(&header_mmap()->head, in GetOldestSequence()
279 return std::atomic_load_explicit(&header_mmap()->tail, in GetNextSequence()
316 uint32_t tail = std::atomic_load_explicit(&header_mmap()->tail, in Get()
318 uint32_t head = std::atomic_load_explicit(&header_mmap()->head, in Get()
340 uint32_t final_head = std::atomic_load_explicit( in Get()
528 std::atomic_load_explicit(&in->data[i], std::memory_order_relaxed); in GetRecordInternal()
562 std::atomic_load_explicit(&header_mmap()->head, in GetGeometry()
564 std::atomic_load_explicit(&header_mmap()->tail, in GetGeometry()
/aosp12/bionic/tests/
H A Dstdatomic_test.cpp94 ASSERT_EQ(123, atomic_load_explicit(&i, memory_order_relaxed)); in TEST()
215 yval = atomic_load_explicit(&a->y, memory_order_acquire); in reader()
216 zval = atomic_load_explicit(&a->z, memory_order_relaxed); in reader()
217 xval = atomic_load_explicit(&a->x, memory_order_relaxed); in reader()
255 EXPECT_EQ(atomic_load_explicit(&a.x, memory_order_consume), BIG + 1); in TEST()
256 EXPECT_EQ(atomic_load_explicit(&a.y, memory_order_seq_cst), BIG + 1); in TEST()
/aosp12/system/media/audio_utils/
H A Dfifo_index.cpp30 return atomic_load_explicit(&mIndex, std::memory_order_relaxed); in loadSingleThreaded()
35 return atomic_load_explicit(&mIndex, std::memory_order_acquire); in loadAcquire()
/aosp12/system/core/libcutils/include/cutils/
H A Datomic.h144 return atomic_load_explicit(a, memory_order_acquire); in android_atomic_acquire_load()
157 return atomic_load_explicit(a, memory_order_relaxed); in android_atomic_release_load()
/aosp12/system/core/libcutils/include_outside_system/cutils/
H A Datomic.h144 return atomic_load_explicit(a, memory_order_acquire); in android_atomic_acquire_load()
157 return atomic_load_explicit(a, memory_order_relaxed); in android_atomic_release_load()
/aosp12/system/core/libcutils/
H A Dtrace-container.cpp74 bool already_enabled = atomic_load_explicit(&atrace_is_enabled, memory_order_acquire); in atrace_set_tracing_enabled()
103 if (atomic_load_explicit(&atrace_is_enabled, memory_order_acquire)) { in atrace_init_once()
H A Dtrace-dev.cpp47 if (!atomic_load_explicit(&atrace_is_enabled, memory_order_acquire)) { in atrace_seq_number_changed()
/aosp12/frameworks/av/media/libstagefright/include/media/stagefright/
H A DMediaBuffer.h205 return std::atomic_load_explicit(&mRemoteRefcount, std::memory_order_seq_cst); in getRemoteRefcount()
214 return (std::atomic_load_explicit( in isDeadObject()
/aosp12/system/core/libsync/
H A Dsync.c188 uapi = atomic_load_explicit(&g_uapi_version, memory_order_acquire); in sync_merge()
330 uapi = atomic_load_explicit(&g_uapi_version, memory_order_acquire); in sync_fence_info()
361 uapi = atomic_load_explicit(&g_uapi_version, memory_order_acquire); in sync_file_info()
/aosp12/libnativehelper/
H A Dlibnativehelper_lazy.c81 if (atomic_load_explicit(&gPreventLibnativehelperLoading, memory_order_acquire)) { in LoadLibnativehelper()
214 if (!atomic_load_explicit(&gJavaVmCreatedLazily, memory_order_acquire) && in JNI_GetCreatedJavaVMs()
/aosp12/bionic/libc/include/bits/
H A Dstdatomic.h227 #define atomic_load_explicit(object, order) \ macro
255 atomic_load_explicit(object, memory_order_seq_cst)
/aosp12/bionic/libc/system_properties/include/system_properties/
H A Dprop_info.h41 return atomic_load_explicit(non_const_s, mo); in load_const_atomic()
/aosp12/frameworks/av/services/audioflinger/
H A DStateQueue.cpp62 const T *next = (const T *) atomic_load_explicit(&mNext, memory_order_acquire); in poll()

12