commore  1.0.6-SNAPSHOT
All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::Lock Class Reference

#include <CriticalSection.h>

Public Member Functions

 Lock (CriticalSection &spcs)
 
 Lock (CriticalSection *spcs)
 
 Lock (Mutex &mtx)
 
 Lock (Mutex *mtx)
 
 ~Lock ()
 

Detailed Description

Gardian of block Simple and Secure CriticalSection or Mutex blocker Lock is set by constructor and released by destructor.

Constructor & Destructor Documentation

commore::Lock::Lock ( CriticalSection spcs)
inline

Lock a critical section by reference

Parameters
spcs
commore::Lock::Lock ( CriticalSection spcs)
inline

Lock a critical section by pointer

Parameters
spcs
commore::Lock::Lock ( Mutex mtx)
inline

Lock a mutex by reference

Parameters
mtx
commore::Lock::Lock ( Mutex mtx)
inline

Lock a mutex by pointer

Parameters
mtx
commore::Lock::~Lock ( )
inline

Release critial section or mutex


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