LibreOffice Module chart2 (master) 1
|
#include <LifeTime.hxx>
Public Member Functions | |
CloseableLifeTimeManager (css::util::XCloseable *pCloseable, css::lang::XComponent *pComponent) | |
virtual | ~CloseableLifeTimeManager () override |
bool | impl_isDisposedOrClosed (bool bAssert=true) |
bool | g_close_startTryClose (bool bDeliverOwnership) |
void | g_close_isNeedToCancelLongLastingCalls (bool bDeliverOwnership, css::util::CloseVetoException const &ex) |
void | g_close_endTryClose (bool bDeliverOwnership) |
void | g_close_endTryClose_doClose () |
void | g_addCloseListener (const css::uno::Reference< css::util::XCloseListener > &xListener) |
Public Member Functions inherited from apphelper::LifeTimeManager | |
LifeTimeManager (css::lang::XComponent *pComponent) | |
virtual | ~LifeTimeManager () |
bool | impl_isDisposed (bool bAssert=true) |
bool | dispose () |
Private Member Functions | |
virtual bool | impl_canStartApiCall () override |
virtual void | impl_apiCallCountReachedNull (std::unique_lock< std::mutex > &rGuard) override |
void | impl_setOwnership (bool bDeliverOwnership, bool bMyVeto) |
void | impl_doClose (std::unique_lock< std::mutex > &rGuard) |
Private Attributes | |
css::util::XCloseable * | m_pCloseable |
::osl::Condition | m_aEndTryClosingCondition |
bool volatile | m_bClosed |
bool volatile | m_bInTryClose |
bool volatile | m_bOwnership |
Definition at line 72 of file LifeTime.hxx.
apphelper::CloseableLifeTimeManager::CloseableLifeTimeManager | ( | css::util::XCloseable * | pCloseable, |
css::lang::XComponent * | pComponent | ||
) |
Definition at line 155 of file LifeTime.cxx.
References m_aEndTryClosingCondition, m_bClosed, m_bInTryClose, and m_bOwnership.
|
overridevirtual |
Definition at line 166 of file LifeTime.cxx.
void apphelper::CloseableLifeTimeManager::g_addCloseListener | ( | const css::uno::Reference< css::util::XCloseListener > & | xListener | ) |
css::uno::RuntimeException |
Definition at line 348 of file LifeTime.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), impl_canStartApiCall(), apphelper::LifeTimeManager::m_aAccessMutex, apphelper::LifeTimeManager::m_aCloseListeners, and m_bOwnership.
void apphelper::CloseableLifeTimeManager::g_close_endTryClose | ( | bool | bDeliverOwnership | ) |
Definition at line 240 of file LifeTime.cxx.
References impl_setOwnership(), apphelper::LifeTimeManager::impl_unregisterApiCall(), apphelper::LifeTimeManager::m_aAccessMutex, m_aEndTryClosingCondition, and m_bInTryClose.
Referenced by g_close_startTryClose().
void apphelper::CloseableLifeTimeManager::g_close_endTryClose_doClose | ( | ) |
Definition at line 278 of file LifeTime.cxx.
References impl_doClose(), apphelper::LifeTimeManager::impl_unregisterApiCall(), apphelper::LifeTimeManager::m_aAccessMutex, m_aEndTryClosingCondition, and m_bInTryClose.
void apphelper::CloseableLifeTimeManager::g_close_isNeedToCancelLongLastingCalls | ( | bool | bDeliverOwnership, |
css::util::CloseVetoException const & | ex | ||
) |
css::util::CloseVetoException |
Definition at line 254 of file LifeTime.cxx.
References ex, impl_setOwnership(), apphelper::LifeTimeManager::impl_unregisterApiCall(), apphelper::LifeTimeManager::m_aAccessMutex, m_aEndTryClosingCondition, m_bInTryClose, and apphelper::LifeTimeManager::m_nLongLastingCallCount.
bool apphelper::CloseableLifeTimeManager::g_close_startTryClose | ( | bool | bDeliverOwnership | ) |
css::uno::Exception |
Definition at line 186 of file LifeTime.cxx.
References aEvent, comphelper::OInterfaceContainerHelper4< class ListenerT >::forEach(), g_close_endTryClose(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), impl_canStartApiCall(), impl_isDisposedOrClosed(), apphelper::LifeTimeManager::impl_registerApiCall(), apphelper::LifeTimeManager::m_aAccessMutex, apphelper::LifeTimeManager::m_aCloseListeners, m_aEndTryClosingCondition, m_bInTryClose, and m_pCloseable.
|
overrideprivatevirtual |
Reimplemented from apphelper::LifeTimeManager.
Definition at line 297 of file LifeTime.cxx.
References impl_doClose(), m_bOwnership, and m_pCloseable.
|
overrideprivatevirtual |
Reimplemented from apphelper::LifeTimeManager.
Definition at line 360 of file LifeTime.cxx.
References apphelper::LifeTimeManager::impl_isDisposed(), apphelper::LifeTimeManager::m_aAccessMutex, m_aEndTryClosingCondition, m_bClosed, apphelper::LifeTimeManager::m_bDisposed, apphelper::LifeTimeManager::m_bInDispose, and m_bInTryClose.
Referenced by g_addCloseListener(), and g_close_startTryClose().
|
private |
Definition at line 305 of file LifeTime.cxx.
References aEvent, DBG_UNHANDLED_EXCEPTION, comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), apphelper::LifeTimeManager::m_aCloseListeners, m_bClosed, apphelper::LifeTimeManager::m_bDisposed, apphelper::LifeTimeManager::m_bInDispose, m_pCloseable, and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by g_close_endTryClose_doClose(), and impl_apiCallCountReachedNull().
bool apphelper::CloseableLifeTimeManager::impl_isDisposedOrClosed | ( | bool | bAssert = true | ) |
Definition at line 170 of file LifeTime.cxx.
References apphelper::LifeTimeManager::impl_isDisposed(), and m_bClosed.
Referenced by g_close_startTryClose().
|
private |
Definition at line 292 of file LifeTime.cxx.
References m_bOwnership.
Referenced by g_close_endTryClose(), and g_close_isNeedToCancelLongLastingCalls().
|
private |
Definition at line 76 of file LifeTime.hxx.
Referenced by CloseableLifeTimeManager(), g_close_endTryClose(), g_close_endTryClose_doClose(), g_close_isNeedToCancelLongLastingCalls(), g_close_startTryClose(), and impl_canStartApiCall().
|
private |
Definition at line 77 of file LifeTime.hxx.
Referenced by CloseableLifeTimeManager(), impl_canStartApiCall(), impl_doClose(), and impl_isDisposedOrClosed().
|
private |
Definition at line 78 of file LifeTime.hxx.
Referenced by CloseableLifeTimeManager(), g_close_endTryClose(), g_close_endTryClose_doClose(), g_close_isNeedToCancelLongLastingCalls(), g_close_startTryClose(), and impl_canStartApiCall().
|
private |
Definition at line 82 of file LifeTime.hxx.
Referenced by CloseableLifeTimeManager(), g_addCloseListener(), impl_apiCallCountReachedNull(), and impl_setOwnership().
|
private |
Definition at line 74 of file LifeTime.hxx.
Referenced by g_close_startTryClose(), impl_apiCallCountReachedNull(), and impl_doClose().