LibreOffice Module framework (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
framework::ShareableMutex Class Reference

This acts like a rtl::Reference<osl::Mutex> More...

#include <shareablemutex.hxx>

Collaboration diagram for framework::ShareableMutex:
[legend]

Classes

struct  MutexRef
 

Public Member Functions

 ShareableMutex ()
 
 ShareableMutex (const ShareableMutex &rShareableMutex)
 
ShareableMutexoperator= (const ShareableMutex &rShareableMutex)
 
 ~ShareableMutex ()
 
void acquire ()
 acquire the shared mutex More...
 
void release ()
 release the shared mutex More...
 

Private Attributes

MutexRefm_pMutexRef
 

Detailed Description

This acts like a rtl::Reference<osl::Mutex>

Definition at line 31 of file shareablemutex.hxx.

Constructor & Destructor Documentation

◆ ShareableMutex() [1/2]

framework::ShareableMutex::ShareableMutex ( )

◆ ShareableMutex() [2/2]

framework::ShareableMutex::ShareableMutex ( const ShareableMutex rShareableMutex)

◆ ~ShareableMutex()

framework::ShareableMutex::~ShareableMutex ( )
inline

Member Function Documentation

◆ acquire()

void framework::ShareableMutex::acquire ( )

acquire the shared mutex

Definition at line 44 of file shareablemutex.cxx.

References framework::ShareableMutex::MutexRef::m_oslMutex, and m_pMutexRef.

Referenced by framework::ShareGuard::ShareGuard().

◆ operator=()

ShareableMutex & framework::ShareableMutex::operator= ( const ShareableMutex rShareableMutex)

◆ release()

void framework::ShareableMutex::release ( )

release the shared mutex

Definition at line 46 of file shareablemutex.cxx.

References framework::ShareableMutex::MutexRef::m_oslMutex, and m_pMutexRef.

Referenced by framework::ShareGuard::~ShareGuard().

Member Data Documentation

◆ m_pMutexRef

MutexRef* framework::ShareableMutex::m_pMutexRef
private

Definition at line 65 of file shareablemutex.hxx.

Referenced by acquire(), operator=(), release(), ShareableMutex(), and ~ShareableMutex().


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