mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
added new members to represent state of nodes and paths
This commit is contained in:
parent
74738a1184
commit
8e196d03f0
2 changed files with 14 additions and 0 deletions
|
@ -163,6 +163,13 @@ struct node
|
|||
int combine; /**< Number of messages to send / recv at once (scatter / gather) */
|
||||
int affinity; /**< CPU Affinity of this node */
|
||||
|
||||
enum node_state {
|
||||
NODE_INVALID, /**< This node object is not in a valid state. */
|
||||
NODE_CREATED, /**< This node has been parsed from the configuration. */
|
||||
NODE_RUNNING, /**< This node has been started by calling node_open() */
|
||||
NODE_STOPPED /**< Node was running, but has been stopped by calling node_close() */
|
||||
} state; /**< Node state */
|
||||
|
||||
struct node_type *_vt; /**< C++ like virtual function call table */
|
||||
|
||||
union {
|
||||
|
|
|
@ -31,6 +31,13 @@
|
|||
*/
|
||||
struct path
|
||||
{
|
||||
enum {
|
||||
PATH_INVALID, /**< */
|
||||
PATH_CREATED, /**< */
|
||||
PATH_RUNNING, /**< */
|
||||
PATH_STOPPED /**< */
|
||||
} state; /**< Path state */
|
||||
|
||||
struct node *in; /**< Pointer to the incoming node */
|
||||
struct node *out; /**< Pointer to the first outgoing node ( path::out == list_first(path::destinations) */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue