From 95bd9a67f9f6c90f627784e3f8fbf5c203784e51 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 30 四月 2021 15:36:17 +0800
Subject: [PATCH] change shm socket msg queue to atomic queue.

---
 box/center.h |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/box/center.h b/box/center.h
index aea0897..ab8b15f 100644
--- a/box/center.h
+++ b/box/center.h
@@ -30,11 +30,9 @@
 public:
 	typedef Socket::PartialRecvCB MsgHandler;
 	typedef Socket::IdleCB IdleHandler;
-	static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const std::string &mqid, const int mq_len);
-	static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const MQId &mqid, const int mq_len);
+	static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const MQId mqid, const int mq_len);
 
 	BHCenter(Socket::Shm &shm);
-	BHCenter();
 	~BHCenter() { Stop(); }
 	bool Start();
 	bool Stop();
@@ -44,7 +42,7 @@
 		std::string name_;
 		MsgHandler handler_;
 		IdleHandler idle_;
-		std::string mqid_;
+		MQId mqid_;
 		int mq_len_ = 0;
 	};
 	typedef std::map<std::string, CenterInfo> CenterRecords;

--
Gitblit v1.8.0