From 11f6c600e55ca5677f93624efe44d2605cdd908d Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 21 五月 2021 20:18:38 +0800
Subject: [PATCH] reserve #,@ prefix for internal proc id and topic.

---
 utest/simple_tests.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/utest/simple_tests.cpp b/utest/simple_tests.cpp
index 33c78f5..e9131b0 100644
--- a/utest/simple_tests.cpp
+++ b/utest/simple_tests.cpp
@@ -107,13 +107,13 @@
 BOOST_AUTO_TEST_CASE(TimedWaitTest)
 {
 	SharedMemory &shm = TestShm();
-	MsgI::BindShm(shm);
-	ShmMsgQueue q(shm, 64);
+	GlobalInit(shm);
+	ShmMsgQueue q(shm, NewSession(), 64);
 	for (int i = 0; i < 2; ++i) {
 		int ms = i * 100;
 		printf("Timeout Test %4d: ", ms);
 		boost::timer::auto_cpu_timer timer;
-		MsgI msg;
+		MsgI msg(shm);
 		bool r = q.Recv(msg, ms);
 		BOOST_CHECK(!r);
 	}
@@ -123,9 +123,9 @@
 {
 	SharedMemory &shm = TestShm();
 	typedef MsgI Msg;
-	Msg::BindShm(shm);
+	GlobalInit(shm);
 
-	Msg m0(1000);
+	Msg m0(1000, shm);
 	BOOST_CHECK(m0.valid());
 	BOOST_CHECK_EQUAL(m0.Count(), 1);
 	Msg m1 = m0;

--
Gitblit v1.8.0