12 #ifndef ROOT_TSpinLockGuard 13 #define ROOT_TSpinLockGuard 40 while (
fAFlag.test_and_set(std::memory_order_acquire));
43 fAFlag.clear(std::memory_order_release);
53 #endif // ROOT_TSpinLockGuard Namespace for new ROOT classes and functions.
std::atomic_flag & fAFlag
TSpinLockGuard(std::atomic_flag &aflag)
A spin mutex-as-code-guard class.