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;
{
std::unique_lock<ROOT::TSpinMutex>
lk(
m);
[...]
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
#include <ROOT/TSpinMutex.hxx>
◆ TSpinMutex() [1/2]
ROOT::TSpinMutex::TSpinMutex |
( |
| ) |
|
|
default |
◆ TSpinMutex() [2/2]
◆ ~TSpinMutex()
ROOT::TSpinMutex::~TSpinMutex |
( |
| ) |
|
|
default |
◆ lock()
void ROOT::TSpinMutex::lock |
( |
| ) |
|
|
inline |
◆ operator=()
◆ try_lock()
bool ROOT::TSpinMutex::try_lock |
( |
| ) |
|
|
inline |
◆ unlock()
void ROOT::TSpinMutex::unlock |
( |
| ) |
|
|
inline |
◆ fAFlag
The documentation for this class was generated from the following file: