EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | List of all members
epicsMutexGuard Class Reference

Automatically takes and releases an epicsMutex. More...

#include <Guard.h>

Public Member Functions

 epicsMutexGuard (epicsMutex &mutex)
 Constructor locks mutex. More...
 
 ~epicsMutexGuard ()
 Destructor unlocks mutex. More...
 
void check (const char *file, size_t line, const epicsMutex &the_one_it_should_be)
 Check.
 

Detailed Description

Automatically takes and releases an epicsMutex.

Idea follows Jeff Hill's epicsGuard.

Archiver should prefer OrderedMutex and Guard over the basic epicsMutex and epicsMutexGuard.

Constructor & Destructor Documentation

epicsMutexGuard::epicsMutexGuard ( epicsMutex &  mutex)
inline

Constructor locks mutex.

epicsMutexGuard::~epicsMutexGuard ( )
inline

Destructor unlocks mutex.


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