Logo ROOT  
Reference Guide
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 43 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 48 of file TProcessID.h.

◆ ~TAtomicPointer()

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

Definition at line 53 of file TProcessID.h.

Member Function Documentation

◆ operator T()

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

Definition at line 57 of file TProcessID.h.

◆ operator->()

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

Definition at line 55 of file TProcessID.h.

◆ operator=()

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

Definition at line 59 of file TProcessID.h.

Member Data Documentation

◆ fAtomic

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

Definition at line 45 of file TProcessID.h.


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