Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Internal::TAtomicPointer< T > Class Template Reference

template<typename T>
class ROOT::Internal::TAtomicPointer< T >

Helper class to manage atomic pointers.

Template Parameters
TPointer type to be made atomic

Helper class to manage atomic pointers. The class enforces that the templated type is a pointer.

Definition at line 48 of file TProcessID.h.

Public Member Functions

 TAtomicPointer ()
 
 ~TAtomicPointer ()
 
 operator T () const
 
operator-> () const
 
operator= (const T &t)
 

Private Attributes

std::atomic< T > fAtomic
 

#include <TProcessID.h>

Constructor & Destructor Documentation

◆ TAtomicPointer()

template<typename T >
ROOT::Internal::TAtomicPointer< T >::TAtomicPointer ( )
inline

Definition at line 53 of file TProcessID.h.

◆ ~TAtomicPointer()

template<typename T >
ROOT::Internal::TAtomicPointer< T >::~TAtomicPointer ( )
inline

Definition at line 58 of file TProcessID.h.

Member Function Documentation

◆ operator T()

template<typename T >
ROOT::Internal::TAtomicPointer< T >::operator T ( ) const
inline

Definition at line 62 of file TProcessID.h.

◆ operator->()

template<typename T >
T ROOT::Internal::TAtomicPointer< T >::operator-> ( ) const
inline

Definition at line 60 of file TProcessID.h.

◆ operator=()

template<typename T >
T ROOT::Internal::TAtomicPointer< T >::operator= ( const T &  t)
inline

Definition at line 64 of file TProcessID.h.

Member Data Documentation

◆ fAtomic

template<typename T >
std::atomic<T> ROOT::Internal::TAtomicPointer< T >::fAtomic
private

Definition at line 50 of file TProcessID.h.

  • core/base/inc/TProcessID.h