From cf05ea3d9f43e4e84d621e1f9d54cbef552b6e2b Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 18 五月 2021 16:53:28 +0800 Subject: [PATCH] fix center init mutex. --- src/proto.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/proto.h b/src/proto.h index 2557f8e..c05407b 100644 --- a/src/proto.h +++ b/src/proto.h @@ -38,6 +38,7 @@ BHOME_SIMPLE_MAP_MSG(CommonReply); BHOME_SIMPLE_MAP_MSG(Register); +BHOME_SIMPLE_MAP_MSG(Unregister); BHOME_SIMPLE_MAP_MSG(RegisterRPC); BHOME_SIMPLE_MAP_MSG(Heartbeat); BHOME_SIMPLE_MAP_MSG(QueryTopic); @@ -47,6 +48,8 @@ BHOME_SIMPLE_MAP_MSG(Publish); BHOME_SIMPLE_MAP_MSG(Subscribe); BHOME_SIMPLE_MAP_MSG(Unsubscribe); +BHOME_SIMPLE_MAP_MSG(ProcInit); +BHOME_SIMPLE_MAP_MSG(ProcInitReply); #undef BHOME_SIMPLE_MAP_MSG #undef BHOME_MAP_MSG_AND_TYPE @@ -73,8 +76,8 @@ return msg; } std::string NewMsgId(); -BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const std::string &msgid); -BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id); +BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const uint64_t ssn_id, const std::string &msgid); +BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const uint64_t ssn_id); // inline void AddRoute(BHMsgHead &head, const MQId &id) { head.add_route()->set_mq_id(&id, sizeof(id)); } inline bool IsSuccess(const ErrorCode ec) { return ec == eSuccess; } bool IsMsgExpired(const BHMsgHead &head); -- Gitblit v1.8.0