From c0d61292ef6bdd8e2e93525b5df6a8ec5c017c32 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 14 五月 2021 14:09:27 +0800
Subject: [PATCH] change refcount, avoid ShmMsgQueue AddRef on send.

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

diff --git a/utest/api_test.cpp b/utest/api_test.cpp
index cf7baf9..f48f307 100644
--- a/utest/api_test.cpp
+++ b/utest/api_test.cpp
@@ -118,6 +118,8 @@
 
 	printf("maxsec: %ld\n", CountSeconds(max_time));
 
+	// BHCleanup();
+	// return;
 	bool reg = false;
 	for (int i = 0; i < 3 && !reg; ++i) {
 		ProcInfo proc;
@@ -282,7 +284,7 @@
 	threads.Launch(hb, &run);
 	threads.Launch(showStatus, &run);
 	int ncli = 10;
-	const uint64_t nreq = 1000 * 100;
+	const int64_t nreq = 1000 * 100;
 	for (int i = 0; i < ncli; ++i) {
 		threads.Launch(asyncRequest, nreq);
 	}
@@ -291,7 +293,7 @@
 	// }
 
 	int same = 0;
-	int64_t last = 0;
+	uint64_t last = 0;
 	while (last < nreq * ncli && same < 2) {
 		Sleep(1s, false);
 		auto cur = Status().nreply_.load();

--
Gitblit v1.8.0