LibreOffice: osl::Guard< T > Class Template Reference

LibreOffice LibreOffice 5.3 SDK C/C++ API Reference

Public Member Functions | Protected Attributes | List of all members
osl::Guard< T > Class Template Reference

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

`#include <mutex.hxx>`

## Public Member Functions
| Guard (T *pT_)
| Acquires the object specified as parameter. More...
| Guard (T &t)
| Acquires the object specified as parameter. More...
| ~Guard ()
| Releases the mutex or interface. More...

## Protected Attributes
T * | pT

## Detailed Description

### template<class T>
class osl::Guard< T >

A helper class for mutex objects and interfaces.

## Constructor & Destructor Documentation

## ◆ Guard() [1/2]

template<class T >

osl::Guard< T >::Guard | ( | T * | pT_ | ) |
| inline

Acquires the object specified as parameter.

## ◆ Guard() [2/2]

template<class T >

osl::Guard< T >::Guard | ( | T & | t | ) |
| inline

Acquires the object specified as parameter.

## ◆ ~Guard()

template<class T >

osl::Guard< T >::~Guard | ( |  | ) |
| inline

Releases the mutex or interface.

## Member Data Documentation

## ◆ pT

template<class T >

T* osl::Guard< T >::pT
| protected

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

- osl/mutex.hxx