DUECA/DUSIME
|
User of the StateGuard class. More...
Public Member Functions | |
ScopeLock (StateGuard &guard) | |
Constructor, locks the stateguard. | |
~ScopeLock () | |
Destructor, unlocks the guard. More... | |
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:
|
inline |
Destructor, unlocks the guard.