class CloseableLifeTimeManager final : public LifeTimeManager
{
css::util::XCloseable* m_pCloseable;
::osl::Condition m_aEndTryClosingCondition; bool m_bClosed; bool m_bInTryClose; //the ownership between model and controller is not clear at first //each controller might consider him as owner of the model first //at start the model is not considered as owner of itself bool m_bOwnership;
::ApiCall { //hold no mutex!!! LifeTimeGuardaLifeTimeGuard(m_aLifeTimeManager);
//mutex is acquired; call is not registered
if(!aLifeTimeGuard.startApiCall()) return;//behave as passive as possible, if disposed or closed
//mutex is acquired, call is registered { //you might access some private members here //but then you need to protect access to these members always like this //never call to the outside here }
aLifeTimeGuard.clear();//!!!
//Mutex is released, the running call is still registered //this call will finish before the 'release-section' in dispose is allowed to start
{ //you might access some private members here guarded with your own mutex //but release your mutex at the end of this block }
//you can call to the outside (without holding the mutex) without becoming disposed
//End of method -> ~LifeTimeGuard //-> call is unregistered //-> this object might be disposed now }
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-09-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.