LibreOffice Module framework (master) 1
|
This acts like a rtl::Reference<osl::Mutex> More...
#include <shareablemutex.hxx>
Classes | |
struct | MutexRef |
Public Member Functions | |
ShareableMutex () | |
ShareableMutex (const ShareableMutex &rShareableMutex) | |
ShareableMutex & | operator= (const ShareableMutex &rShareableMutex) |
~ShareableMutex () | |
void | acquire () |
acquire the shared mutex More... | |
void | release () |
release the shared mutex More... | |
Private Attributes | |
MutexRef * | m_pMutexRef |
This acts like a rtl::Reference<osl::Mutex>
Definition at line 31 of file shareablemutex.hxx.
framework::ShareableMutex::ShareableMutex | ( | ) |
Definition at line 24 of file shareablemutex.cxx.
References framework::ShareableMutex::MutexRef::acquire(), and m_pMutexRef.
framework::ShareableMutex::ShareableMutex | ( | const ShareableMutex & | rShareableMutex | ) |
Definition at line 30 of file shareablemutex.cxx.
References framework::ShareableMutex::MutexRef::acquire(), and m_pMutexRef.
|
inline |
Definition at line 38 of file shareablemutex.hxx.
References m_pMutexRef, and framework::ShareableMutex::MutexRef::release().
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().
ShareableMutex & framework::ShareableMutex::operator= | ( | const ShareableMutex & | rShareableMutex | ) |
Definition at line 36 of file shareablemutex.cxx.
References framework::ShareableMutex::MutexRef::acquire(), m_pMutexRef, and framework::ShareableMutex::MutexRef::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().
|
private |
Definition at line 65 of file shareablemutex.hxx.
Referenced by acquire(), operator=(), release(), ShareableMutex(), and ~ShareableMutex().