From d17450bd7bc9fd5e98e8e2f00999caffe2e301a6 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 26 三月 2021 17:43:09 +0800
Subject: [PATCH] test thread/fork speed; reset msg after release.

---
 src/msg.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/msg.h b/src/msg.h
index 910efa5..2c2efac 100644
--- a/src/msg.h
+++ b/src/msg.h
@@ -73,7 +73,7 @@
 
     // AddRef and Release works for both counted and not counted msg.
     int AddRef() const { return IsCounted() ? count_->Inc() : 1; }
-    int Release(SharedMemory &shm) const;
+    int Release(SharedMemory &shm);
 
     int Count()  const{ return IsCounted() ? count_->Get() : 1; }
     bool IsCounted() const { return static_cast<bool>(count_); }

--
Gitblit v1.8.0