3.4.0
tigl::ReentryGuard Struct Referencefinal

#include <ReentryGuard.h>

Public Member Functions

bool locked () const noexcept
 
 operator bool () const noexcept
 
bool operator! () const noexcept
 
ReentryGuardoperator= (const ReentryGuard &)=delete
 
ReentryGuardoperator= (ReentryGuard &&) noexcept=delete
 
 ReentryGuard (std::atomic< bool > &flag) noexcept
 
 ReentryGuard (const ReentryGuard &)=delete
 
 ReentryGuard (ReentryGuard &&) noexcept=delete
 
 ~ReentryGuard () noexcept
 

Private Attributes

std::atomic< bool > & m_flag
 
bool m_locked {false}
 

Constructor & Destructor Documentation

◆ ReentryGuard() [1/3]

tigl::ReentryGuard::ReentryGuard ( std::atomic< bool > &  flag)
inlineexplicitnoexcept

◆ ~ReentryGuard()

tigl::ReentryGuard::~ReentryGuard ( )
inlinenoexcept

◆ ReentryGuard() [2/3]

tigl::ReentryGuard::ReentryGuard ( const ReentryGuard )
delete

◆ ReentryGuard() [3/3]

tigl::ReentryGuard::ReentryGuard ( ReentryGuard &&  )
deletenoexcept

Member Function Documentation

◆ locked()

bool tigl::ReentryGuard::locked ( ) const
inlinenoexcept

◆ operator bool()

tigl::ReentryGuard::operator bool ( ) const
inlineexplicitnoexcept

◆ operator!()

bool tigl::ReentryGuard::operator! ( ) const
inlinenoexcept

◆ operator=() [1/2]

ReentryGuard& tigl::ReentryGuard::operator= ( const ReentryGuard )
delete

◆ operator=() [2/2]

ReentryGuard& tigl::ReentryGuard::operator= ( ReentryGuard &&  )
deletenoexcept

Field Documentation

◆ m_flag

std::atomic<bool>& tigl::ReentryGuard::m_flag
private

◆ m_locked

bool tigl::ReentryGuard::m_locked {false}
private

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