From c1e39e20ca42b21eeac8b5068fa1f921bf9a070f Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期三, 23 六月 2021 19:43:29 +0800 Subject: [PATCH] refactor, start tcp pub/sub. --- src/shm_msg_queue.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shm_msg_queue.h b/src/shm_msg_queue.h index db5414b..6a4d7a4 100644 --- a/src/shm_msg_queue.h +++ b/src/shm_msg_queue.h @@ -29,13 +29,12 @@ { public: typedef int64_t RawData; - typedef ShmObject<SharedQ63> Shmq; + typedef NamedShmObject<SharedQ63> Shmq; typedef Shmq::Data Queue; typedef Shmq::ShmType ShmType; typedef uint64_t MQId; - ShmMsgQueue(ShmType &segment, const MQId id, const int len); - ShmMsgQueue(ShmType &segment, const bool create_or_else_find, const MQId id, const int len); + ShmMsgQueue(ShmType &segment, const MQId id, Mode mode); ShmMsgQueue(const int64_t abs_addr, ShmType &segment, const MQId id); ~ShmMsgQueue(); static bool Remove(ShmType &shm, const MQId id); -- Gitblit v1.8.0