From a100bb2af8afc5fb61abc54e0b616cc44bb0b814 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 26 三月 2021 15:53:35 +0800
Subject: [PATCH] adjust mq length.

---
 src/shm_queue.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/shm_queue.h b/src/shm_queue.h
index 14f43c0..140654c 100644
--- a/src/shm_queue.h
+++ b/src/shm_queue.h
@@ -88,8 +88,8 @@
     bool Write(const Msg &buf, const int timeout_ms) { return data()->Write(buf, timeout_ms); }
     bool Read(Msg &buf, const int timeout_ms) { return data()->Read(buf, timeout_ms); }
 public:
-    ShmMsgQueue(const MQId &id, ShmType &segment, const uint32_t len);
-    ShmMsgQueue(ShmType &segment, const uint32_t len);
+    ShmMsgQueue(const MQId &id, ShmType &segment, const int len);
+    ShmMsgQueue(ShmType &segment, const int len);
     ~ShmMsgQueue();
     bool Send(const MQId &remote_id, const void *data, const size_t size, const int timeout_ms);
     bool Recv(MQId &source_id, void *&data, size_t &size, const int timeout_ms);

--
Gitblit v1.8.0