From 72851db66655912cb9c92300a80985fb9797d168 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 01 六月 2021 16:25:23 +0800
Subject: [PATCH] remove AtomicQueue, not used.

---
 box/center.h |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/box/center.h b/box/center.h
index ad0ac4f..8850db4 100644
--- a/box/center.h
+++ b/box/center.h
@@ -22,6 +22,10 @@
 #include <functional>
 #include <map>
 #include <memory>
+class CenterTopicNode;
+class TcpServer;
+class TcpProxy;
+class IoService;
 
 class BHCenter
 {
@@ -34,7 +38,7 @@
 	static bool Install(const std::string &name, MsgHandler handler, RawHandler raw_handler, IdleHandler idle, const MQInfo &mq, const int mq_len);
 
 	BHCenter(Socket::Shm &shm);
-	~BHCenter() { Stop(); }
+	~BHCenter();
 	bool Start();
 	bool Stop();
 
@@ -51,6 +55,11 @@
 	static CenterRecords &Centers();
 
 	std::map<std::string, std::shared_ptr<ShmSocket>> sockets_;
+	std::unique_ptr<CenterTopicNode> topic_node_;
+
+	std::unique_ptr<IoService> io_service_;
+	std::unique_ptr<TcpServer> tcp_server_;
+	std::unique_ptr<TcpProxy> tcp_proxy_;
 };
 
 #endif // end of include guard: CENTER_TM9OUQTG

--
Gitblit v1.8.0