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

#include <LifeTime.hxx>

Inheritance diagram for apphelper::LifeTimeManager:
[legend]
Collaboration diagram for apphelper::LifeTimeManager:
[legend]

Public Member Functions

 LifeTimeManager (css::lang::XComponent *pComponent)
 
virtual ~LifeTimeManager ()
 
bool impl_isDisposed (bool bAssert=true)
 
bool dispose ()
 

Public Attributes

std::mutex m_aAccessMutex
 
::comphelper::OInterfaceContainerHelper4< css::util::XCloseListener > m_aCloseListeners
 
::comphelper::OInterfaceContainerHelper4< css::util::XModifyListener > m_aModifyListeners
 
::comphelper::OInterfaceContainerHelper4< css::document::XStorageChangeListener > m_aStorageChangeListeners
 
::comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aEventListeners
 
::comphelper::OInterfaceContainerHelper4< css::view::XSelectionChangeListener > m_aSelectionChangeListeners
 

Protected Member Functions

virtual SAL_DLLPRIVATE bool impl_canStartApiCall ()
 
virtual SAL_DLLPRIVATE void impl_apiCallCountReachedNull (std::unique_lock< std::mutex > &)
 
SAL_DLLPRIVATE void impl_registerApiCall (bool bLongLastingCall)
 
SAL_DLLPRIVATE void impl_unregisterApiCall (std::unique_lock< std::mutex > &rGuard, bool bLongLastingCall)
 

Protected Attributes

css::lang::XComponent * m_pComponent
 
::osl::Condition m_aNoAccessCountCondition
 
sal_Int32 m_nAccessCount
 
bool volatile m_bDisposed
 
bool volatile m_bInDispose
 
::osl::Condition m_aNoLongLastingCallCountCondition
 
sal_Int32 m_nLongLastingCallCount
 

Friends

class LifeTimeGuard
 

Detailed Description

Definition at line 38 of file LifeTime.hxx.

Constructor & Destructor Documentation

◆ LifeTimeManager()

apphelper::LifeTimeManager::LifeTimeManager ( css::lang::XComponent *  pComponent)

◆ ~LifeTimeManager()

apphelper::LifeTimeManager::~LifeTimeManager ( )
virtual

Definition at line 49 of file LifeTime.cxx.

Member Function Documentation

◆ dispose()

bool apphelper::LifeTimeManager::dispose ( void  )

◆ impl_apiCallCountReachedNull()

virtual SAL_DLLPRIVATE void apphelper::LifeTimeManager::impl_apiCallCountReachedNull ( std::unique_lock< std::mutex > &  )
inlineprotectedvirtual

Reimplemented in apphelper::CloseableLifeTimeManager.

Definition at line 58 of file LifeTime.hxx.

Referenced by impl_unregisterApiCall().

◆ impl_canStartApiCall()

bool apphelper::LifeTimeManager::impl_canStartApiCall ( )
protectedvirtual

Reimplemented in apphelper::CloseableLifeTimeManager.

Definition at line 66 of file LifeTime.cxx.

References impl_isDisposed().

Referenced by apphelper::LifeTimeGuard::startApiCall().

◆ impl_isDisposed()

bool apphelper::LifeTimeManager::impl_isDisposed ( bool  bAssert = true)

◆ impl_registerApiCall()

void apphelper::LifeTimeManager::impl_registerApiCall ( bool  bLongLastingCall)
protected

◆ impl_unregisterApiCall()

void apphelper::LifeTimeManager::impl_unregisterApiCall ( std::unique_lock< std::mutex > &  rGuard,
bool  bLongLastingCall 
)
protected

Friends And Related Function Documentation

◆ LifeTimeGuard

friend class LifeTimeGuard
friend

Definition at line 40 of file LifeTime.hxx.

Member Data Documentation

◆ m_aAccessMutex

std::mutex apphelper::LifeTimeManager::m_aAccessMutex
mutable

◆ m_aCloseListeners

::comphelper::OInterfaceContainerHelper4<css::util::XCloseListener> apphelper::LifeTimeManager::m_aCloseListeners

◆ m_aEventListeners

::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> apphelper::LifeTimeManager::m_aEventListeners

Definition at line 53 of file LifeTime.hxx.

Referenced by dispose().

◆ m_aModifyListeners

::comphelper::OInterfaceContainerHelper4<css::util::XModifyListener> apphelper::LifeTimeManager::m_aModifyListeners

Definition at line 51 of file LifeTime.hxx.

Referenced by dispose().

◆ m_aNoAccessCountCondition

::osl::Condition apphelper::LifeTimeManager::m_aNoAccessCountCondition
protected

◆ m_aNoLongLastingCallCountCondition

::osl::Condition apphelper::LifeTimeManager::m_aNoLongLastingCallCountCondition
protected

Definition at line 68 of file LifeTime.hxx.

Referenced by impl_registerApiCall(), impl_unregisterApiCall(), and LifeTimeManager().

◆ m_aSelectionChangeListeners

::comphelper::OInterfaceContainerHelper4<css::view::XSelectionChangeListener> apphelper::LifeTimeManager::m_aSelectionChangeListeners

Definition at line 54 of file LifeTime.hxx.

Referenced by dispose().

◆ m_aStorageChangeListeners

::comphelper::OInterfaceContainerHelper4<css::document::XStorageChangeListener> apphelper::LifeTimeManager::m_aStorageChangeListeners

Definition at line 52 of file LifeTime.hxx.

Referenced by dispose().

◆ m_bDisposed

bool volatile apphelper::LifeTimeManager::m_bDisposed
protected

◆ m_bInDispose

bool volatile apphelper::LifeTimeManager::m_bInDispose
protected

◆ m_nAccessCount

sal_Int32 apphelper::LifeTimeManager::m_nAccessCount
protected

Definition at line 65 of file LifeTime.hxx.

Referenced by impl_registerApiCall(), impl_unregisterApiCall(), and LifeTimeManager().

◆ m_nLongLastingCallCount

sal_Int32 apphelper::LifeTimeManager::m_nLongLastingCallCount
protected

◆ m_pComponent

css::lang::XComponent* apphelper::LifeTimeManager::m_pComponent
protected

Definition at line 63 of file LifeTime.hxx.

Referenced by dispose().


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