From 4fadba32621283dff64cc1b8592896c864f913d4 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期日, 25 四月 2021 15:41:14 +0800
Subject: [PATCH] mq always create new shm, do not find.

---
 utest/api_test.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utest/api_test.cpp b/utest/api_test.cpp
index 5d65bd5..dd59b09 100644
--- a/utest/api_test.cpp
+++ b/utest/api_test.cpp
@@ -198,8 +198,8 @@
 
 	const std::string mtx_name("test_mutex");
 	const std::string int_name("test_int");
-	auto mtx = shm.find_or_construct<Mutex>(mtx_name.c_str())();
-	auto pi = shm.find_or_construct<int>(int_name.c_str())(100);
+	auto mtx = shm.FindOrCreate<Mutex>(mtx_name);
+	auto pi = shm.FindOrCreate<int>(int_name, 100);
 
 	printf("mutetx ");
 	PrintPtr(mtx);

--
Gitblit v1.8.0