12#ifndef ROOT_TSpinMutex
13#define ROOT_TSpinMutex
45 std::atomic_flag
fAFlag = ATOMIC_FLAG_INIT;
53 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
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...