From 9bf199a4770b08c03d553129757d960b605e598a Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 14 五月 2021 18:05:21 +0800
Subject: [PATCH] add center info at fixed address in shm.

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

diff --git a/utest/speed_test.cpp b/utest/speed_test.cpp
index 8950bbf..66e5179 100644
--- a/utest/speed_test.cpp
+++ b/utest/speed_test.cpp
@@ -158,8 +158,8 @@
 
 	auto Avail = [&]() { return shm.get_free_memory(); };
 	auto init_avail = Avail();
-	ShmSocket srv(shm, qlen);
-	ShmSocket cli(shm, qlen);
+	ShmSocket srv(shm, ShmMsgQueue::NewId(), qlen);
+	ShmSocket cli(shm, ShmMsgQueue::NewId(), qlen);
 
 	int ncli = 1;
 	uint64_t nmsg = 1000 * 1000 * 1;

--
Gitblit v1.8.0