Searched refs:atomic_exchange (Results 1 - 21 of 21) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_recursion_guard.h39 : Running(R), Valid(!atomic_exchange(&R, 1, memory_order_acq_rel)) {}
H A Dxray_profiling.cpp155 auto FCT = atomic_exchange(&TLD.FCT, 0, memory_order_acq_rel);
160 auto Allocators = atomic_exchange(&TLD.Allocators, 0, memory_order_acq_rel);
172 uptr P = atomic_exchange(&T.FCT, 0, memory_order_acq_rel);
180 uptr A = atomic_exchange(&T.Allocators, 0, memory_order_acq_rel);
225 s32 Previous = atomic_exchange(&ProfilerLogFlushStatus,
431 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel))
457 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel))
H A Dxray_buffer_queue.cpp219 if (atomic_exchange(&Finalizing, 1, memory_order_acq_rel))
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_mutex.h35 return atomic_exchange(&state_, 1, memory_order_acquire) == 0;
56 && atomic_exchange(&state_, 1, memory_order_acquire) == 0)
H A Dsanitizer_atomic_clang.h62 INLINE typename T::Type atomic_exchange(volatile T *a, function in namespace:__sanitizer
H A Dsanitizer_atomic_msvc.h147 INLINE u8 atomic_exchange(volatile atomic_uint8_t *a, function in namespace:__sanitizer
154 INLINE u16 atomic_exchange(volatile atomic_uint16_t *a, function in namespace:__sanitizer
161 INLINE u32 atomic_exchange(volatile atomic_uint32_t *a, function in namespace:__sanitizer
H A Dsanitizer_rtems.cpp121 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked)
123 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) {
130 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release);
H A Dsanitizer_coverage_fuchsia.cpp84 u32 idx = atomic_exchange(guard_ptr, 0, memory_order_relaxed);
H A Dsanitizer_fuchsia.cpp125 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked)
127 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) {
138 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release);
H A Dsanitizer_common.cpp337 return !atomic_exchange(&in_crash_state, 1, memory_order_relaxed);
H A Dsanitizer_linux.cpp650 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked)
652 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) {
666 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release);
H A Dsanitizer_common_interceptors.inc6133 if (atomic_exchange(&printed, 1, memory_order_relaxed))
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dlinux.cpp102 V = atomic_exchange(&M, Sleeping, memory_order_acquire);
106 V = atomic_exchange(&M, Sleeping, memory_order_acquire);
H A Datomic_helpers.h93 inline typename T::Type atomic_exchange(volatile T *A, typename T::Type V, function in namespace:scudo
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.h60 u32 OldColumn = __sanitizer::atomic_exchange(
/freebsd-11-stable/contrib/llvm-project/clang/lib/Headers/
H A Dstdatomic.h123 #define atomic_exchange(object, desired) __c11_atomic_exchange(object, desired, __ATOMIC_SEQ_CST) macro
H A Dopencl-c.h13594 // atomic_exchange()
13596 int __ovld atomic_exchange(volatile atomic_int *object, int desired);
13599 uint __ovld atomic_exchange(volatile atomic_uint *object, uint desired);
13602 float __ovld atomic_exchange(volatile atomic_float *object, float desired);
13607 double __ovld atomic_exchange(volatile atomic_double *object, double desired);
13611 long __ovld atomic_exchange(volatile atomic_long *object, long desired);
13614 ulong __ovld atomic_exchange(volatile atomic_ulong *object, ulong desired);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_external.cpp93 (char *)atomic_exchange(header_ptr, (uptr)header, memory_order_seq_cst);
H A Dtsan_rtl.cpp434 atomic_exchange(&bg_thread, 1, memory_order_relaxed) == 0) {
/freebsd-11-stable/share/man/man3/
H A DMakefile30 ATOMIC_VAR_INIT.3 atomic_exchange.3 \
/freebsd-11-stable/sys/sys/
H A Dstdatomic.h349 #define atomic_exchange(object, desired) \ macro

Completed in 207 milliseconds