Lock protects a code section utilizing a critical section. More...
#include <utility.h>
Public Member Functions | |
Lock (CritSect &crit_sect) | |
~Lock () | |
Protected Attributes | |
CritSect & | _crit_sect |
Lock protects a code section utilizing a critical section.
Definition at line 325 of file utility.h.
Lock::Lock | ( | CritSect & | crit_sect ) | [inline] |
Definition at line 327 of file utility.h.
: _crit_sect(crit_sect) { EnterCriticalSection(&crit_sect); }
Lock::~Lock | ( | ) | [inline] |
Definition at line 333 of file utility.h.
{ LeaveCriticalSection(&_crit_sect); }
CritSect& Lock::_crit_sect [protected] |
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |