Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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:

mutable std::atomic_flag fSpinLock;
[...]
// do something important
[...]
A spin mutex-as-code-guard class.

{.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 </home/sftnight/build/workspace/root-makedoc-v630/rootspi/rdoc/src/v6-30-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.

  • core/foundation/res/TSpinLockGuard.h