fpmas 1.6
Public Member Functions | List of all members
fpmas::synchro::AcquireGuard< T > Class Template Reference

#include <guards.h>

Inheritance diagram for fpmas::synchro::AcquireGuard< T >:
Inheritance graph
[legend]
Collaboration diagram for fpmas::synchro::AcquireGuard< T >:
Collaboration graph
[legend]

Public Member Functions

 AcquireGuard (api::graph::DistributedNode< T > *node)
 
virtual ~AcquireGuard ()
 

Detailed Description

template<typename T>
class fpmas::synchro::AcquireGuard< T >

AcquireGuard.

Constructor & Destructor Documentation

◆ AcquireGuard()

template<typename T >
fpmas::synchro::AcquireGuard< T >::AcquireGuard ( api::graph::DistributedNode< T > *  node)
inline

AcquireGuard constructor.

The node is acquired exactly as if node->mutex()->acquire() was called. The internal node data is then updated according to the current SyncMode, and can be safely accessed with node->data() until this Guard goes out of scope.

Parameters
nodeto acquire

◆ ~AcquireGuard()

template<typename T >
virtual fpmas::synchro::AcquireGuard< T >::~AcquireGuard ( )
inlinevirtual

AcquireGuard destructor.

Releases the acquire operation.


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