LibreOffice Module canvas (master)  1
Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
canvas::BaseMutexHelper< Base > Class Template Reference

Base class, initializing its own baseclass with m_aMutex. More...

#include <basemutexhelper.hxx>

Inheritance diagram for canvas::BaseMutexHelper< Base >:
Collaboration diagram for canvas::BaseMutexHelper< Base >:

Protected Member Functions

 BaseMutexHelper ()
 Construct BaseMutexHelper. More...
virtual void disposeThis ()

Protected Attributes

osl::Mutex m_aMutex

Private Member Functions

virtual void SAL_CALL disposing () override

Detailed Description

template<class Base>
class canvas::BaseMutexHelper< Base >

Base class, initializing its own baseclass with m_aMutex.

This is necessary to make the CanvasBase, GraphicDeviceBase, etc. classes freely combinable - letting them perform this initialization would prohibit deriving e.g. CanvasBase from GraphicDeviceBase.

Definition at line 37 of file basemutexhelper.hxx.

Constructor & Destructor Documentation

template<class Base>
canvas::BaseMutexHelper< Base >::BaseMutexHelper ( )

Construct BaseMutexHelper.

This method is the whole purpose of this template: initializing a base class with the provided m_aMutex member (the WeakComponentImplHelper templates need that, as they require the lifetime of the mutex to extend theirs).

Definition at line 48 of file basemutexhelper.hxx.

Member Function Documentation

template<class Base>
virtual void canvas::BaseMutexHelper< Base >::disposeThis ( )
template<class Base>
virtual void SAL_CALL canvas::BaseMutexHelper< Base >::disposing ( )

Definition at line 58 of file basemutexhelper.hxx.

Member Data Documentation

template<class Base>
osl::Mutex canvas::BaseMutexHelper< Base >::m_aMutex

Definition at line 55 of file basemutexhelper.hxx.

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