LibreOffice
LibreOffice 5.3 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
osl::ResettableGuard< T > Class Template Reference

A helper class for mutex objects and interfaces. More...

#include <mutex.hxx>

Inheritance diagram for osl::ResettableGuard< T >:
osl::ClearableGuard< T >

Public Member Functions

 ResettableGuard (T *pT_)
 Acquires the object specified as parameter. More...
 
 ResettableGuard (T &rT)
 Acquires the object specified as parameter. More...
 
void reset ()
 Re-acquires the mutex or interface. More...
 
- Public Member Functions inherited from osl::ClearableGuard< T >
 ClearableGuard (T *pT_)
 Acquires the object specified as parameter. More...
 
 ClearableGuard (T &t)
 Acquires the object specified as parameter. More...
 
 ~ClearableGuard ()
 Releases the mutex or interface if not already released by clear(). More...
 
void clear ()
 Releases the mutex or interface. More...
 

Protected Attributes

T * pResetT
 
- Protected Attributes inherited from osl::ClearableGuard< T >
T * pT
 

Detailed Description

template<class T>
class osl::ResettableGuard< T >

A helper class for mutex objects and interfaces.

Constructor & Destructor Documentation

template<class T >
osl::ResettableGuard< T >::ResettableGuard ( T *  pT_)
inline

Acquires the object specified as parameter.

template<class T >
osl::ResettableGuard< T >::ResettableGuard ( T &  rT)
inline

Acquires the object specified as parameter.

Member Function Documentation

template<class T >
void osl::ResettableGuard< T >::reset ( )
inline

Re-acquires the mutex or interface.

Member Data Documentation

template<class T >
T* osl::ResettableGuard< T >::pResetT
protected

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