DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dueca::ScopeLock Class Reference

User of the StateGuard class. More...

#include <StateGuard.hxx>

Public Member Functions

 ScopeLock (StateGuard &guard)
 Constructor, locks the stateguard.
 
 ~ScopeLock ()
 Destructor, unlocks the guard.
 

Detailed Description

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:

{
// somewhere inside a block
// from now on. guard is locked. Access the data
} // as the block (function, etc.) goes out of scope, the
// ScopeLock destructor is called and guard is unlocked.
User of the StateGuard class.
Definition StateGuard.hxx:85
This is a "light weight object" that enables you to read the latest set of data on a StreamChannelEnd...
Definition StreamReaderLatest.hxx:43

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