Home
last modified time | relevance | path

Searched refs:atomic_exchange (Results 1 – 13 of 13) sorted by relevance

/external/libcxx/test/atomics/atomics.types.operations/atomics.types.operations.req/
Datomic_exchange.pass.cpp31 assert(std::atomic_exchange(&t, T(2)) == T(1)); in test()
35 assert(std::atomic_exchange(&vt, T(4)) == T(3)); in test()
DAndroid.mk27 test_name := atomics/atomics.types.operations/atomics.types.operations.req/atomic_exchange
28 test_src := atomic_exchange.pass.cpp
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mutex.h36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock()
57 && atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow()
Dsanitizer_atomic_msvc.h144 INLINE u8 atomic_exchange(volatile atomic_uint8_t *a, in atomic_exchange() function
157 INLINE u16 atomic_exchange(volatile atomic_uint16_t *a, in atomic_exchange() function
Dsanitizer_atomic_clang.h63 INLINE typename T::Type atomic_exchange(volatile T *a, in atomic_exchange() function
Dsanitizer_linux.cc439 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked) in Lock()
441 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock()
452 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_relaxed); in Unlock()
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared.atomic/
DAndroid.mk23 test_name := utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_exchange
24 test_src := atomic_exchange.pass.cpp
Datomic_exchange.pass.cpp32 r = std::atomic_exchange(&p, r); in main()
/external/compiler-rt/lib/ubsan/
Dubsan_value.h68 u32 OldColumn = __sanitizer::atomic_exchange( in acquire()
/external/libcxx/include/
Datomic309 atomic_exchange(volatile atomic<T>* obj, T desr) noexcept;
313 atomic_exchange(atomic<T>* obj, T desr) noexcept;
1165 // atomic_exchange
1170 atomic_exchange(volatile atomic<_Tp>* __o, _Tp __d) _NOEXCEPT
1178 atomic_exchange(atomic<_Tp>* __o, _Tp __d) _NOEXCEPT
Dmemory557 shared_ptr<T> atomic_exchange(shared_ptr<T>* p, shared_ptr<T> r);
5330 atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r)
5344 return atomic_exchange(__p, __r);
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc1156 if (atomic_exchange(&printed, 1, memory_order_relaxed)) in MlockIsUnsupported()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc1912 if (atomic_exchange(&printed, 1, memory_order_relaxed)) in MlockIsUnsupported()