Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_profiling.cpp155 auto FCT = atomic_exchange(&TLD.FCT, 0, memory_order_acq_rel); in cleanupTLD()
160 auto Allocators = atomic_exchange(&TLD.Allocators, 0, memory_order_acq_rel); in cleanupTLD()
172 uptr P = atomic_exchange(&T.FCT, 0, memory_order_acq_rel); in postCurrentThreadFCT()
180 uptr A = atomic_exchange(&T.Allocators, 0, memory_order_acq_rel); in postCurrentThreadFCT()
225 s32 Previous = atomic_exchange(&ProfilerLogFlushStatus, in profilingFlush()
431 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel)) in profilingLoggingInit()
457 if (atomic_exchange(&ThreadExitingLatch, 1, memory_order_acq_rel)) in profilingLoggingInit()
H A Dxray_recursion_guard.h39 : Running(R), Valid(!atomic_exchange(&R, 1, memory_order_acq_rel)) {} in RecursionGuard()
H A Dxray_buffer_queue.cpp219 if (atomic_exchange(&Finalizing, 1, memory_order_acq_rel)) in finalize()
H A Dxray_fdr_logging.cpp287 if (atomic_exchange(&LogFlushStatus, XRayLogFlushStatus::XRAY_LOG_FLUSHING, in fdrLoggingFlush()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_msvc.h147 inline u8 atomic_exchange(volatile atomic_uint8_t *a, in atomic_exchange() function
154 inline u16 atomic_exchange(volatile atomic_uint16_t *a, in atomic_exchange() function
161 inline u32 atomic_exchange(volatile atomic_uint32_t *a, in atomic_exchange() function
H A Dsanitizer_atomic_clang.h62 inline typename T::Type atomic_exchange(volatile T *a, in atomic_exchange() function
H A Dsanitizer_fuchsia.cpp130 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked) in Lock()
132 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock()
143 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release); in Unlock()
H A Dsanitizer_coverage_fuchsia.cpp84 u32 idx = atomic_exchange(guard_ptr, 0, memory_order_relaxed); in TracePcGuard()
H A Dsanitizer_tls_get_addr.cpp86 DTLS::DTVBlock *block = (DTLS::DTVBlock *)atomic_exchange( in DTLS_Destroy()
H A Dsanitizer_mutex.cpp26 atomic_exchange(&state_, 1, memory_order_acquire) == 0) in LockSlow()
H A Dsanitizer_common.cpp354 return !atomic_exchange(&in_crash_state, 1, memory_order_relaxed); in __sanitizer_acquire_crash_state()
H A Dsanitizer_mutex.h36 return atomic_exchange(&state_, 1, memory_order_acquire) == 0; in TryLock()
H A Dsanitizer_linux.cpp672 if (atomic_exchange(m, MtxLocked, memory_order_acquire) == MtxUnlocked) in Lock()
674 while (atomic_exchange(m, MtxSleeping, memory_order_acquire) != MtxUnlocked) { in Lock()
688 u32 v = atomic_exchange(m, MtxUnlocked, memory_order_release); in Unlock()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dlinux.cpp114 V = atomic_exchange(&M, Sleeping, memory_order_acquire); in lockSlow()
118 V = atomic_exchange(&M, Sleeping, memory_order_acquire); in lockSlow()
H A Datomic_helpers.h107 inline typename T::Type atomic_exchange(volatile T *A, typename T::Type V, in atomic_exchange() function
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.h60 u32 OldColumn = __sanitizer::atomic_exchange( in acquire()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_external.cpp94 (char *)atomic_exchange(header_ptr, (uptr)header, memory_order_seq_cst); in __tsan_external_register_header()
H A Dtsan_rtl.cpp472 atomic_exchange(&bg_thread, 1, memory_order_relaxed) == 0) { in MaybeSpawnBackgroundThread()
/freebsd-13.1/contrib/llvm-project/clang/lib/Headers/
H A Dstdatomic.h123 #define atomic_exchange(object, desired) __c11_atomic_exchange(object, desired, __ATOMIC_SEQ_CST) macro
/freebsd-13.1/usr.sbin/bhyve/
H A Drfb.c532 if (atomic_exchange(&rc->pending, false) == false) in rfb_send_screen()
560 if (atomic_exchange(&rc->update_all, false) == true) { in rfb_send_screen()
774 input = atomic_exchange(&rc->input_detected, false); in rfb_wr_thr()
/freebsd-13.1/sys/sys/
H A Dstdatomic.h348 #define atomic_exchange(object, desired) \ macro
/freebsd-13.1/share/man/man3/
H A DMakefile79 ATOMIC_VAR_INIT.3 atomic_exchange.3 \
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A Datomic297 T atomic_exchange(volatile atomic<T>* obj, T desr) noexcept;
300 T atomic_exchange(atomic<T>* obj, T desr) noexcept;
2005 // atomic_exchange
2010 atomic_exchange(volatile atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT
2018 atomic_exchange(atomic<_Tp>* __o, typename atomic<_Tp>::value_type __d) _NOEXCEPT
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp623 atomic_exchange(&m->user_requested_size, 0, memory_order_acquire); in Deallocate()
/freebsd-13.1/contrib/llvm-project/libcxx/include/__memory/
H A Dshared_ptr.h1805 atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r)
1820 return atomic_exchange(__p, __r);

12