From 34cd75f77d0ca94dbdba4e6cc9451fe4d33e78b3 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期三, 19 五月 2021 19:14:13 +0800 Subject: [PATCH] add api BHQueryProcs. --- utest/simple_tests.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utest/simple_tests.cpp b/utest/simple_tests.cpp index 33c78f5..e1f1d2f 100644 --- a/utest/simple_tests.cpp +++ b/utest/simple_tests.cpp @@ -107,8 +107,8 @@ BOOST_AUTO_TEST_CASE(TimedWaitTest) { SharedMemory &shm = TestShm(); - MsgI::BindShm(shm); - ShmMsgQueue q(shm, 64); + GlobalInit(shm); + ShmMsgQueue q(shm, ShmMsgQueue::NewId(), 64); for (int i = 0; i < 2; ++i) { int ms = i * 100; printf("Timeout Test %4d: ", ms); @@ -123,7 +123,7 @@ { SharedMemory &shm = TestShm(); typedef MsgI Msg; - Msg::BindShm(shm); + GlobalInit(shm); Msg m0(1000); BOOST_CHECK(m0.valid()); -- Gitblit v1.8.0