![]() |
fpmas 1.6
|
#include <guards.h>
Public Member Functions | |
Guard (const Guard &)=delete | |
Guard (Guard &&)=delete | |
Guard & | operator= (const Guard &)=delete |
Guard & | operator= (Guard &&)=delete |
Protected Member Functions | |
Guard (api::graph::DistributedNode< T > *node) | |
Protected Attributes | |
api::synchro::Mutex< T > & | mutex |
Generic Guard API.
Guards provides an elegant and reliable way to perform operations on each node mutex.
The concept of the guard is to acquire lock and/or resources when the Guard is instantiated, and to automatically release it when the guard goes out of scope.
This concept is directly inspired from the std::lock_guard class.
|
inlineprotected |
Guard constructor.
node | node on which operation will be performed |
|
protected |
Internal mutex reference.