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

#include <guards.h>

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

Public Member Functions

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

Detailed Description

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

ReadGuard.

Constructor & Destructor Documentation

◆ ReadGuard()

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

ReadGuard constructor.

The node is read exactly as if node->mutex()->read() 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 read

◆ ~ReadGuard()

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

ReadGuard destructor.

Releases the read operation.


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