From 377e395a5fdc6ad44bdd5a2d41d2930f45fc4384 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 30 四月 2021 18:25:33 +0800 Subject: [PATCH] add node init msg, alloc msgq on success. --- src/shm_msg_queue.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/shm_msg_queue.cpp b/src/shm_msg_queue.cpp index cd8cd66..38c5f1c 100644 --- a/src/shm_msg_queue.cpp +++ b/src/shm_msg_queue.cpp @@ -34,7 +34,7 @@ ShmMsgQueue::MQId ShmMsgQueue::NewId() { static auto &id = GetData(); - return ++id; + return (++id) * 10; } // ShmMsgQueue memory usage: (320 + 16*length) bytes, length >= 2 ShmMsgQueue::ShmMsgQueue(const MQId id, ShmType &segment, const int len) : -- Gitblit v1.8.0