sttcl  v0.9c
STTCL C++ template state machine framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sttcl::internal::AutoLocker< Lockable > Class Template Reference

#include <SttclMutex.h>

List of all members.

Public Member Functions

 AutoLocker (Lockable &argLockableRef)
 ~AutoLocker ()

Detailed Description

template<class Lockable>
class sttcl::internal::AutoLocker< Lockable >

Helper class to create a properly scoped lock of a mutex object.

Template Parameters:
LockableThe mutex class type.

Constructor & Destructor Documentation

template<class Lockable>
sttcl::internal::AutoLocker< Lockable >::AutoLocker ( Lockable &  argLockableRef)
inline

Constructor for class AutoLocker. Locks the argLockableRef object.

Parameters:
argLockableRefA reference to a mutex (or other Lockable implementation).
template<class Lockable>
sttcl::internal::AutoLocker< Lockable >::~AutoLocker ( )
inline

Destructor for class AutoLocker. Unlocks the object reference passed with the constructor.


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