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/msg.cpp |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/src/msg.cpp b/src/msg.cpp
index e8c6d26..f180d67 100644
--- a/src/msg.cpp
+++ b/src/msg.cpp
@@ -16,20 +16,9 @@
  * =====================================================================================
  */
 #include "msg.h"
+#include "bh_util.h"
 
-namespace bhome_shm {
-	
-
-bool MsgMetaV1::Parse(const void *p)
+namespace bhome_msg
 {
-    assert(p);
-    *this = *static_cast<const MsgMetaV1*>(p);
-    return tag_ == kMsgMetaTag;
-}
 
-void MsgMetaV1::Pack(void *p)
-{
-    *static_cast<MsgMetaV1*>(p) = *this;
-}
-
-} // namespace bhome_shm
+} // namespace bhome_msg

--
Gitblit v1.8.0