"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "ef558ee5199c6cac5550cbef9cef5bd6b04c0923"
Commit 96273b5f authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

lib/simbricks/base: add terminate message

This will be used for orderly termination of simulators at different times
without blocking others.
parent 2a40c306
...@@ -108,6 +108,8 @@ struct SimbricksProtoConnecterIntro { ...@@ -108,6 +108,8 @@ struct SimbricksProtoConnecterIntro {
/** Pure Sync Message, no upper layer data */ /** Pure Sync Message, no upper layer data */
#define SIMBRICKS_PROTO_MSG_TYPE_SYNC 0x00 #define SIMBRICKS_PROTO_MSG_TYPE_SYNC 0x00
/** Peer Termination Message, no upper layer data */
#define SIMBRICKS_PROTO_MSG_TYPE_TERMINATE 0x01
/* values in between are reserved for future extensions */ /* values in between are reserved for future extensions */
/** first message type reserved for upper layer protocols */ /** first message type reserved for upper layer protocols */
#define SIMBRICKS_PROTO_MSG_TYPE_UPPER_START 0x40 #define SIMBRICKS_PROTO_MSG_TYPE_UPPER_START 0x40
...@@ -123,6 +125,7 @@ SIMBRICKS_PROTO_MSG_SZCHECK(struct SimbricksProtoBaseMsgHeader); ...@@ -123,6 +125,7 @@ SIMBRICKS_PROTO_MSG_SZCHECK(struct SimbricksProtoBaseMsgHeader);
union SimbricksProtoBaseMsg { union SimbricksProtoBaseMsg {
struct SimbricksProtoBaseMsgHeader header; struct SimbricksProtoBaseMsgHeader header;
struct SimbricksProtoBaseMsgHeader sync; struct SimbricksProtoBaseMsgHeader sync;
struct SimbricksProtoBaseMsgHeader terminate;
} __attribute__((packed)); } __attribute__((packed));
SIMBRICKS_PROTO_MSG_SZCHECK(union SimbricksProtoBaseMsg); SIMBRICKS_PROTO_MSG_SZCHECK(union SimbricksProtoBaseMsg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment