12#ifndef ROOT_TSpinMutex
13#define ROOT_TSpinMutex
44 std::atomic_flag
fAFlag = ATOMIC_FLAG_INIT;
52 void lock() {
while (
fAFlag.test_and_set(std::memory_order_acquire)); }
A spin mutex class which respects the STL interface for mutexes.
TSpinMutex(const TSpinMutex &)=delete
TSpinMutex & operator=(const TSpinMutex &)=delete
Namespace for new ROOT classes and functions.