From 77a6c3512a44dfe6540dde71946e6484fe4f173f Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期一, 10 五月 2021 16:05:28 +0800 Subject: [PATCH] test lock code. --- utest/simple_tests.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utest/simple_tests.cpp b/utest/simple_tests.cpp index 33c78f5..e14a1cd 100644 --- a/utest/simple_tests.cpp +++ b/utest/simple_tests.cpp @@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE(TimedWaitTest) { SharedMemory &shm = TestShm(); - MsgI::BindShm(shm); + GlobalInit(shm); ShmMsgQueue q(shm, 64); for (int i = 0; i < 2; ++i) { int ms = i * 100; @@ -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