![]() |
fpmas 1.6
|
#include <sync_mode.h>
Public Member Functions | |
virtual Mutex< T > * | buildMutex (api::graph::DistributedNode< T > *node)=0 |
virtual SyncLinker< T > & | getSyncLinker ()=0 |
virtual DataSync< T > & | getDataSync ()=0 |
SyncMode API.
A synchronization mode is mainly defined by 3 components :
|
pure virtual |
Builds a Mutex associated to the specified node.
The Mutex must be built so that the Mutex::data() function returns a reference to the internal node data, i.e. api::graph::DistributedNode::data().
Notice that this function is not required to bind the built Mutex to the node, since this might be the role of the component in charge to build the node (i.e. the api::graph::DistributedGraph implementation).
node | node to which the built mutex will be associated |
Implemented in fpmas::synchro::ghost::GhostMode< T, Mutex >, and fpmas::synchro::hard::HardSyncModeBase< T >.
|
pure virtual |
Returns a reference to the SyncLinker instance associated to this synchronization mode.
Implemented in fpmas::synchro::ghost::GhostMode< T, Mutex >, fpmas::synchro::hard::hard_link::HardSyncMode< T >, and fpmas::synchro::hard::ghost_link::HardSyncMode< T >.
|
pure virtual |
Returns a reference to the DataSync instance associated to this synchronization mode.
Implemented in fpmas::synchro::ghost::GhostMode< T, Mutex >, and fpmas::synchro::hard::HardSyncModeBase< T >.