LibreOffice Module chart2 (master) 1
|
#include <LifeTime.hxx>
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 |
Definition at line 38 of file LifeTime.hxx.
apphelper::LifeTimeManager::LifeTimeManager | ( | css::lang::XComponent * | pComponent | ) |
Definition at line 38 of file LifeTime.cxx.
References m_aNoAccessCountCondition, m_aNoLongLastingCallCountCondition, m_bDisposed, m_bInDispose, m_nAccessCount, and m_nLongLastingCallCount.
|
virtual |
Definition at line 49 of file LifeTime.cxx.
bool apphelper::LifeTimeManager::dispose | ( | void | ) |
css::uno::RuntimeException |
Definition at line 111 of file LifeTime.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), m_aAccessMutex, m_aCloseListeners, m_aEventListeners, m_aModifyListeners, m_aNoAccessCountCondition, m_aSelectionChangeListeners, m_aStorageChangeListeners, m_bDisposed, m_bInDispose, m_pComponent, and SAL_WARN.
|
inlineprotectedvirtual |
Reimplemented in apphelper::CloseableLifeTimeManager.
Definition at line 58 of file LifeTime.hxx.
Referenced by impl_unregisterApiCall().
|
protectedvirtual |
Reimplemented in apphelper::CloseableLifeTimeManager.
Definition at line 66 of file LifeTime.cxx.
References impl_isDisposed().
Referenced by apphelper::LifeTimeGuard::startApiCall().
bool apphelper::LifeTimeManager::impl_isDisposed | ( | bool | bAssert = true | ) |
Definition at line 53 of file LifeTime.cxx.
References m_bDisposed, and m_bInDispose.
Referenced by impl_canStartApiCall(), apphelper::CloseableLifeTimeManager::impl_canStartApiCall(), and apphelper::CloseableLifeTimeManager::impl_isDisposedOrClosed().
|
protected |
Definition at line 75 of file LifeTime.cxx.
References m_aNoAccessCountCondition, m_aNoLongLastingCallCountCondition, m_nAccessCount, and m_nLongLastingCallCount.
Referenced by apphelper::CloseableLifeTimeManager::g_close_startTryClose(), and apphelper::LifeTimeGuard::startApiCall().
|
protected |
Definition at line 90 of file LifeTime.cxx.
References impl_apiCallCountReachedNull(), m_aNoAccessCountCondition, m_aNoLongLastingCallCountCondition, m_nAccessCount, and m_nLongLastingCallCount.
Referenced by apphelper::CloseableLifeTimeManager::g_close_endTryClose(), apphelper::CloseableLifeTimeManager::g_close_endTryClose_doClose(), apphelper::CloseableLifeTimeManager::g_close_isNeedToCancelLongLastingCalls(), and apphelper::LifeTimeGuard::~LifeTimeGuard().
|
friend |
Definition at line 40 of file LifeTime.hxx.
|
mutable |
Definition at line 49 of file LifeTime.hxx.
Referenced by dispose(), apphelper::CloseableLifeTimeManager::g_addCloseListener(), apphelper::CloseableLifeTimeManager::g_close_endTryClose(), apphelper::CloseableLifeTimeManager::g_close_endTryClose_doClose(), apphelper::CloseableLifeTimeManager::g_close_isNeedToCancelLongLastingCalls(), apphelper::CloseableLifeTimeManager::g_close_startTryClose(), and apphelper::CloseableLifeTimeManager::impl_canStartApiCall().
::comphelper::OInterfaceContainerHelper4<css::util::XCloseListener> apphelper::LifeTimeManager::m_aCloseListeners |
Definition at line 50 of file LifeTime.hxx.
Referenced by dispose(), apphelper::CloseableLifeTimeManager::g_addCloseListener(), apphelper::CloseableLifeTimeManager::g_close_startTryClose(), and apphelper::CloseableLifeTimeManager::impl_doClose().
::comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> apphelper::LifeTimeManager::m_aEventListeners |
Definition at line 53 of file LifeTime.hxx.
Referenced by dispose().
::comphelper::OInterfaceContainerHelper4<css::util::XModifyListener> apphelper::LifeTimeManager::m_aModifyListeners |
Definition at line 51 of file LifeTime.hxx.
Referenced by dispose().
|
protected |
Definition at line 64 of file LifeTime.hxx.
Referenced by dispose(), impl_registerApiCall(), impl_unregisterApiCall(), and LifeTimeManager().
|
protected |
Definition at line 68 of file LifeTime.hxx.
Referenced by impl_registerApiCall(), impl_unregisterApiCall(), and LifeTimeManager().
::comphelper::OInterfaceContainerHelper4<css::view::XSelectionChangeListener> apphelper::LifeTimeManager::m_aSelectionChangeListeners |
Definition at line 54 of file LifeTime.hxx.
Referenced by dispose().
::comphelper::OInterfaceContainerHelper4<css::document::XStorageChangeListener> apphelper::LifeTimeManager::m_aStorageChangeListeners |
Definition at line 52 of file LifeTime.hxx.
Referenced by dispose().
|
protected |
Definition at line 66 of file LifeTime.hxx.
Referenced by dispose(), apphelper::CloseableLifeTimeManager::impl_canStartApiCall(), apphelper::CloseableLifeTimeManager::impl_doClose(), impl_isDisposed(), and LifeTimeManager().
|
protected |
Definition at line 67 of file LifeTime.hxx.
Referenced by dispose(), apphelper::CloseableLifeTimeManager::impl_canStartApiCall(), apphelper::CloseableLifeTimeManager::impl_doClose(), impl_isDisposed(), and LifeTimeManager().
|
protected |
Definition at line 65 of file LifeTime.hxx.
Referenced by impl_registerApiCall(), impl_unregisterApiCall(), and LifeTimeManager().
|
protected |
Definition at line 69 of file LifeTime.hxx.
Referenced by apphelper::CloseableLifeTimeManager::g_close_isNeedToCancelLongLastingCalls(), impl_registerApiCall(), impl_unregisterApiCall(), and LifeTimeManager().
|
protected |
Definition at line 63 of file LifeTime.hxx.
Referenced by dispose().