A spin mutex class which respects the STL interface for mutexes.
This class allows to acquire spin locks also in combination with templates in the STL such as std::unique_lock or std::condition_variable_any. For example:
std::condition_variable cv;
bool ready = false;
{
std::unique_lock<ROOT::TSpinMutex> lk(
m);
cv.wait(lk, []{return ready;});
[...]
}
static void * worker_thread(void *thread_func_param)
A spin mutex class which respects the STL interface for mutexes.
{.cpp}
Definition at line 42 of file TSpinMutex.hxx.