From 43d4e95770b0519341153202c9a535aaa8e164c5 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 01 六月 2021 14:22:20 +0800
Subject: [PATCH] refactor, remove useless code.

---
 src/shm_msg_queue.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/shm_msg_queue.h b/src/shm_msg_queue.h
index 23faa24..db5414b 100644
--- a/src/shm_msg_queue.h
+++ b/src/shm_msg_queue.h
@@ -29,7 +29,7 @@
 {
 public:
 	typedef int64_t RawData;
-	typedef ShmObject<SharedQ63<0>> Shmq;
+	typedef ShmObject<SharedQ63> Shmq;
 	typedef Shmq::Data Queue;
 	typedef Shmq::ShmType ShmType;
 	typedef uint64_t MQId;
@@ -43,10 +43,10 @@
 	ShmType &shm() const { return queue_.shm(); }
 	int64_t AbsAddr() const { return queue_.offset(); }
 
-	bool Recv(RawData &val, const int timeout_ms) { return queue().Read(val, timeout_ms); }
+	// bool Recv(RawData &val, const int timeout_ms) { return queue().Read(val, timeout_ms); }
 	bool TryRecv(RawData &val) { return queue().TryRead(val); }
 
-	bool Recv(MsgI &msg, const int timeout_ms) { return Recv(msg.OffsetRef(), timeout_ms); }
+	// bool Recv(MsgI &msg, const int timeout_ms) { return Recv(msg.OffsetRef(), timeout_ms); }
 	bool TryRecv(MsgI &msg) { return TryRecv(msg.OffsetRef()); }
 	static Queue *Find(ShmType &shm, const MQId remote);
 	static bool TrySend(ShmType &shm, const MQInfo &remote, const RawData val);

--
Gitblit v1.8.0