From 2de7ebf4516e58a8fa959977a51dccd22823c0e0 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期四, 06 五月 2021 18:58:35 +0800 Subject: [PATCH] fix node recursive lock. --- 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