CarobNS::LockScope Class Reference

Utility class to lock a scope by entering the given critical section at creation time, and leaving it when destroyed Example usage: void fct() { LockScope ls(myCriticalSectionHandle); //do what is critical } //no need to do anything else, the scope locker destructor is called //automatically, releasing the lock . More...

#include <CriticalSection.hpp>

List of all members.

Public Member Functions

 LockScope (CriticalSection *CSPtrPrm)
 Locks the current scope using the given CriticalSection object.


Detailed Description

Utility class to lock a scope by entering the given critical section at creation time, and leaving it when destroyed Example usage: void fct() { LockScope ls(myCriticalSectionHandle); //do what is critical } //no need to do anything else, the scope locker destructor is called //automatically, releasing the lock .


The documentation for this class was generated from the following file:
Generated on Tue Oct 24 09:05:38 2006 for Carob by  doxygen 1.5.0