LibreOffice Module comphelper (master)  1
Protected Member Functions | Private Attributes | List of all members
comphelper::SharedMutexBase Class Reference

sometimes, it's necessary to have an initialized ::osl::Mutex to pass to some ctor call of your base class. More...

#include <sharedmutex.hxx>

Collaboration diagram for comphelper::SharedMutexBase:
[legend]

Protected Member Functions

 SharedMutexBase ()
 
 ~SharedMutexBase ()
 
::osl::Mutex & getMutex () const
 
SharedMutexgetSharedMutex () const
 

Private Attributes

SharedMutex m_aMutex
 

Detailed Description

sometimes, it's necessary to have an initialized ::osl::Mutex to pass to some ctor call of your base class.

In this case, you can't hold the SharedMutex as member, but you need to move it into another base class, which is initialized before the mutex-requiring class is.

Definition at line 53 of file sharedmutex.hxx.

Constructor & Destructor Documentation

comphelper::SharedMutexBase::SharedMutexBase ( )
inlineprotected

Definition at line 56 of file sharedmutex.hxx.

comphelper::SharedMutexBase::~SharedMutexBase ( )
inlineprotected

Definition at line 59 of file sharedmutex.hxx.

Member Function Documentation

::osl::Mutex& comphelper::SharedMutexBase::getMutex ( ) const
inlineprotected

Definition at line 64 of file sharedmutex.hxx.

References m_aMutex.

SharedMutex& comphelper::SharedMutexBase::getSharedMutex ( ) const
inlineprotected

Definition at line 65 of file sharedmutex.hxx.

References m_aMutex.

Member Data Documentation

SharedMutex comphelper::SharedMutexBase::m_aMutex
mutableprivate

Definition at line 68 of file sharedmutex.hxx.


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