Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Internal::TSpinLockGuard Class Reference

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
 

#include </mnt/build/workspace/root-makedoc-v612/rootspi/rdoc/src/v6-12-00-patches/core/foundation/res/TSpinLockGuard.h>

Constructor & Destructor Documentation

◆ TSpinLockGuard()

ROOT::Internal::TSpinLockGuard::TSpinLockGuard ( std::atomic_flag &  aflag)
inline

Definition at line 38 of file TSpinLockGuard.h.

◆ ~TSpinLockGuard()

ROOT::Internal::TSpinLockGuard::~TSpinLockGuard ( )
inline

Definition at line 42 of file TSpinLockGuard.h.

Member Data Documentation

◆ fAFlag

std::atomic_flag& ROOT::Internal::TSpinLockGuard::fAFlag
private

Definition at line 47 of file TSpinLockGuard.h.


The documentation for this class was generated from the following file: