![]() |
fpmas 1.6
|
#include <hard_sync_mode.h>
Public Member Functions | |
virtual void | registerNodeToRemove (fpmas::api::graph::DistributedNode< T > *node)=0 |
![]() | |
virtual void | link (api::graph::DistributedEdge< T > *edge)=0 |
virtual void | unlink (api::graph::DistributedEdge< T > *edge)=0 |
virtual void | removeNode (api::graph::DistributedNode< T > *node)=0 |
virtual void | synchronize ()=0 |
SyncLinker API extension to handle HardSyncMode.
|
pure virtual |
Registers a local node to be removed at the next synchronize() call.
This should be called when the MutexServer receives a REMOVE_NODE request. Indeed, the node can't be erased when the request is handled since requests for this node might still be pending.
In consequence, the node can be registered to be removed using this function, and is only removed at the next synchronize() call, after the TerminationAlgorithm has been applied, when it is ensured that no more request is pending.
node | node to remove |
Implemented in fpmas::synchro::hard::hard_link::HardSyncLinker< T >.