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/shm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/shm.h b/src/shm.h
index 808ed5d..7537067 100644
--- a/src/shm.h
+++ b/src/shm.h
@@ -88,7 +88,7 @@
     {
         pdata_ = shm_.find_or_construct<Data>(ObjName(name_).c_str(), std::nothrow)(t...);
         if (!IsOk()) {
-            throw("shm error: " + name_);
+            throw("Error: Not enough memory, can not allocate \"" + name_ + "\"");
         }
     }
     Data *find(const std::string &name) { return shm_.find<Data>(ObjName(name).c_str()).first; }

--
Gitblit v1.8.0