This is Unofficial EPICS BASE Doxygen Site
epicsGuardRelease< T > Class Template Reference

#include "epicsGuard.h"

Public Types

typedef epicsGuard< T > guard_t
 

Public Member Functions

 epicsGuardRelease (epicsGuard< T > &)
 
 ~epicsGuardRelease ()
 

Detailed Description

template<class T>
class epicsGuardRelease< T >

Definition at line 22 of file epicsGuard.h.

Member Typedef Documentation

template<class T>
typedef epicsGuard<T> epicsGuardRelease< T >::guard_t

Definition at line 47 of file epicsGuard.h.

Constructor & Destructor Documentation

template<class T >
epicsGuardRelease< T >::epicsGuardRelease ( epicsGuard< T > &  guardIn)
inline

Definition at line 88 of file epicsGuard.h.

88  :
89  _guard ( guardIn ),
90  _pTargetMutex ( guardIn._pTargetMutex )
91 {
92  // Setting the guard's _pTargetMutex to nill will
93  // allow assertIdenticalMutex to catch situations
94  // where a guard is being used and it has been
95  // released, and also situations where ~epicsGuard ()
96  // runs and an epicsGuardRelease is still referencing
97  // the guard will be detected.
98  _guard._pTargetMutex = 0;
99  _pTargetMutex->unlock ();
100 }
template<class T >
epicsGuardRelease< T >::~epicsGuardRelease ( )
inline

Definition at line 103 of file epicsGuard.h.

104 {
105  _pTargetMutex->lock ();
106  _guard._pTargetMutex = _pTargetMutex;
107 }

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