ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
Enumerations | Functions
control_msg.h File Reference

MPI remote control messages header. More...

#include <gvt/gvt.h>
#include <gvt/termination.h>
Include dependency graph for control_msg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  msg_ctrl_code { MSG_CTRL_GVT_START = 1 , MSG_CTRL_GVT_DONE , MSG_CTRL_TERMINATION }
 A control message MPI tag value. More...
 

Functions

void control_msg_process (enum msg_ctrl_code ctrl)
 Handle a received control message. More...
 

Detailed Description

MPI remote control messages header.

The module in which remote control messages are wired to the other modules

Enumeration Type Documentation

◆ msg_ctrl_code

A control message MPI tag value.

Enumerator
MSG_CTRL_GVT_START 

Used by the master to start a new gvt reduction operation.

MSG_CTRL_GVT_DONE 

Used by slaves to signal their completion of the gvt protocol.

MSG_CTRL_TERMINATION 

Used in broadcast to signal that local LPs can terminate.

Function Documentation

◆ control_msg_process()

void control_msg_process ( enum msg_ctrl_code  ctrl)

Handle a received control message.

Parameters
ctrlthe tag of the received control message