uvco 0.1
|
#include <internal_utils.h>
Public Member Functions | |
FlagGuard (const FlagGuard &)=delete | |
FlagGuard (FlagGuard &&)=delete | |
FlagGuard & | operator= (const FlagGuard &)=delete |
FlagGuard & | operator= (FlagGuard &&)=delete |
FlagGuard (bool &flag) | |
Uses Boost assert to ensure that the flag is not already set. | |
~FlagGuard () | |
Private Attributes | |
bool & | flag_ |
Assert that an operation is concurrently running only one at a time, by setting a flag in the constructor and unsetting it in the destructor.
|
delete |
|
delete |
|
explicit |
uvco::FlagGuard::~FlagGuard | ( | ) |
|
private |