LibreOffice Module chart2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
apphelper::LifeTimeGuard Class Reference

#include <LifeTime.hxx>

Collaboration diagram for apphelper::LifeTimeGuard:
[legend]

Public Member Functions

 LifeTimeGuard (LifeTimeManager &rManager)
 
bool startApiCall (bool bLongLastingCall=false)
 
 ~LifeTimeGuard ()
 
void clear ()
 

Private Member Functions

 LifeTimeGuard (const LifeTimeGuard &)=delete
 
LifeTimeGuardoperator= (const LifeTimeGuard &)=delete
 

Private Attributes

std::unique_lock< std::mutexm_guard
 
LifeTimeManagerm_rManager
 
bool m_bCallRegistered
 
bool m_bLongLastingCallRegistered
 

Detailed Description

Definition at line 169 of file LifeTime.hxx.

Constructor & Destructor Documentation

◆ LifeTimeGuard() [1/2]

apphelper::LifeTimeGuard::LifeTimeGuard ( LifeTimeManager rManager)
inline

Definition at line 173 of file LifeTime.hxx.

◆ ~LifeTimeGuard()

apphelper::LifeTimeGuard::~LifeTimeGuard ( )

◆ LifeTimeGuard() [2/2]

apphelper::LifeTimeGuard::LifeTimeGuard ( const LifeTimeGuard )
privatedelete

Member Function Documentation

◆ clear()

void apphelper::LifeTimeGuard::clear ( )
inline

Definition at line 183 of file LifeTime.hxx.

References m_guard.

◆ operator=()

LifeTimeGuard & apphelper::LifeTimeGuard::operator= ( const LifeTimeGuard )
privatedelete

◆ startApiCall()

bool apphelper::LifeTimeGuard::startApiCall ( bool  bLongLastingCall = false)

Member Data Documentation

◆ m_bCallRegistered

bool apphelper::LifeTimeGuard::m_bCallRegistered
private

Definition at line 188 of file LifeTime.hxx.

Referenced by startApiCall(), and ~LifeTimeGuard().

◆ m_bLongLastingCallRegistered

bool apphelper::LifeTimeGuard::m_bLongLastingCallRegistered
private

Definition at line 189 of file LifeTime.hxx.

Referenced by startApiCall(), and ~LifeTimeGuard().

◆ m_guard

std::unique_lock<std::mutex> apphelper::LifeTimeGuard::m_guard
private

Definition at line 186 of file LifeTime.hxx.

Referenced by clear(), and ~LifeTimeGuard().

◆ m_rManager

LifeTimeManager& apphelper::LifeTimeGuard::m_rManager
private

Definition at line 187 of file LifeTime.hxx.

Referenced by startApiCall(), and ~LifeTimeGuard().


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