|
| | SyncSwitch (int num_nodes) |
| |
| | ~SyncSwitch () |
| |
| bool | run (bool same_tick) override |
| | Core method to perform a full dist sync.
|
| |
| bool | progress (Tick max_req_tick, Tick next_repeat, ReqType do_ckpt, ReqType do_exit, ReqType do_stop_sync) override |
| | Callback when the receiver thread gets a sync ack message.
|
| |
| void | requestCkpt (ReqType) override |
| |
| void | requestExit (ReqType) override |
| |
| void | requestStopSync (ReqType) override |
| |
| void | serialize (CheckpointOut &cp) const override |
| | Serialize an object.
|
| |
| void | unserialize (CheckpointIn &cp) override |
| | Unserialize an object.
|
| |
| void | init (Tick start, Tick repeat) |
| | Initialize periodic sync params.
|
| |
| virtual bool | run (bool same_tick)=0 |
| | Core method to perform a full dist sync.
|
| |
| virtual bool | progress (Tick send_tick, Tick next_repeat, ReqType do_ckpt, ReqType do_exit, ReqType do_stop_sync)=0 |
| | Callback when the receiver thread gets a sync ack message.
|
| |
| void | abort () |
| | Abort processing an on-going sync event (in case of an error, e.g.
|
| |
| virtual void | requestCkpt (ReqType req)=0 |
| |
| virtual void | requestExit (ReqType req)=0 |
| |
| virtual void | requestStopSync (ReqType req)=0 |
| |
| void | drainComplete () |
| |
| virtual void | serialize (CheckpointOut &cp) const override=0 |
| | Serialize an object.
|
| |
| virtual void | unserialize (CheckpointIn &cp) override=0 |
| | Unserialize an object.
|
| |
| | Serializable () |
| |
| virtual | ~Serializable () |
| |
| virtual void | serialize (CheckpointOut &cp) const =0 |
| | Serialize an object.
|
| |
| virtual void | unserialize (CheckpointIn &cp)=0 |
| | Unserialize an object.
|
| |
| void | serializeSection (CheckpointOut &cp, const char *name) const |
| | Serialize an object into a new section.
|
| |
| void | serializeSection (CheckpointOut &cp, const std::string &name) const |
| |
| void | unserializeSection (CheckpointIn &cp, const char *name) |
| | Unserialize an a child object.
|
| |
| void | unserializeSection (CheckpointIn &cp, const std::string &name) |
| |
|
| static const std::string & | currentSection () |
| | Gets the fully-qualified name of the active section.
|
| |
| static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
| | Generate a checkpoint file so that the serialization can be routed to it.
|
| |
| std::mutex | lock |
| | The lock to protect access to the Sync object.
|
| |
| std::condition_variable | cv |
| | Condition variable for the simulation thread to wait on until all receiver threads completes the current global synchronisation.
|
| |
| unsigned | waitNum |
| | Number of receiver threads that not yet completed the current global synchronisation.
|
| |
| bool | doExit |
| | Flag is set if exit is permitted upon sync completion.
|
| |
| bool | doCkpt |
| | Flag is set if taking a ckpt is permitted upon sync completion.
|
| |
| bool | doStopSync |
| | Flag is set if sync is to stop upon sync completion.
|
| |
| Tick | nextRepeat |
| | The repeat value for the next periodic sync.
|
| |
| Tick | nextAt |
| | Tick for the next periodic sync (if the event is not scheduled yet)
|
| |
| bool | isAbort |
| | Flag is set if the sync is aborted (e.g.
|
| |
Definition at line 240 of file dist_iface.hh.