AtomicIfTSan
Fully qualified name: carb::AtomicIfTSan
Defined in carb/detail/TSan.h
-
template<class T>
using carb::AtomicIfTSan = std::atomic<T>
A helper type that is T
if TSan is not enabled, or std::atomic<T>
if TSan is enabled. Generally used for working around TSan false positives or warnings with complicated (but correct) logic.