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
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.