From 330f78f3334bcdcdb4cc2ab2dbf66604e0224d71 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 21 五月 2021 16:21:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/valib/bhshmq
---
src/shm_msg_queue.cpp | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/shm_msg_queue.cpp b/src/shm_msg_queue.cpp
index 1d78e8c..be2d2a2 100644
--- a/src/shm_msg_queue.cpp
+++ b/src/shm_msg_queue.cpp
@@ -31,12 +31,6 @@
} // namespace
-ShmMsgQueue::MQId ShmMsgQueue::NewId()
-{
- static auto &id = GetData("Must init shared memory before use! Please make sure center is running.");
- return (++id) * 10;
-}
-
ShmMsgQueue::ShmMsgQueue(ShmType &segment, const MQId id, const int len) :
id_(id),
queue_(segment, MsgQIdToName(id_), len, segment.get_segment_manager())
@@ -84,7 +78,7 @@
if (IsCmd(val)) {
LOG_DEBUG() << "clsing queue " << id << ", has a cmd" << DecodeCmd(val);
} else {
- MsgI(val).Release();
+ MsgI(val, shm).Release();
}
}
}
--
Gitblit v1.8.0