From 1ff714838c03cba1a18884d5b48a20ee6c4275ac Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 21 五月 2021 15:00:53 +0800 Subject: [PATCH] class MsgI, ShmMsgQueue, no bind to shm. --- src/shm_msg_queue.h | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/shm_msg_queue.h b/src/shm_msg_queue.h index de60fde..6d922aa 100644 --- a/src/shm_msg_queue.h +++ b/src/shm_msg_queue.h @@ -27,7 +27,7 @@ #define BH_USE_ATOMIC_Q -class ShmMsgQueue : public StaticDataRef<std::atomic<uint64_t>, ShmMsgQueue> +class ShmMsgQueue { public: typedef int64_t RawData; @@ -45,8 +45,6 @@ typedef Shmq::Data Queue; typedef Shmq::ShmType ShmType; typedef uint64_t MQId; - - static MQId NewId(); ShmMsgQueue(ShmType &segment, const MQId id, const int len); ShmMsgQueue(ShmType &segment, const bool create_or_else_find, const MQId id, const int len); -- Gitblit v1.8.0