ROOT 6.18/05 Reference Guide |
A spin mutex-as-code-guard class.
This class allows to acquire spin locks in combination with a std::atomic_flag variable. For example: ~~~{.cpp} mutable std::atomic_flag fSpinLock; [...] ROOT::Internal::TSpinLockGuard slg(fSpinLock); // do something important [...] ~~~{.cpp}
Definition at line 35 of file TSpinLockGuard.h.
Public Member Functions | |
TSpinLockGuard (std::atomic_flag &aflag) | |
~TSpinLockGuard () | |
Private Attributes | |
std::atomic_flag & | fAFlag |
|
inline |
Definition at line 38 of file TSpinLockGuard.h.
|
inline |
Definition at line 42 of file TSpinLockGuard.h.
|
private |
Definition at line 47 of file TSpinLockGuard.h.