DUECA/DUSIME
|
User of the StateGuard class. More...
#include <StateGuard.hxx>
Public Member Functions | |
ScopeLock (StateGuard &guard) | |
Constructor, locks the stateguard. | |
~ScopeLock () | |
Destructor, unlocks the guard. | |
User of the StateGuard class.
Locks a StateGuard upon entry, and unlocks again upon deletion, i.e. as the thing goes out of scope. Example: