From 34bc326eab06b9b1da2004a9e0d2182d63501d68 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 14 五月 2021 17:57:49 +0800 Subject: [PATCH] change SendQ data from variant to int64. --- utest/speed_test.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/utest/speed_test.cpp b/utest/speed_test.cpp index 334c081..8950bbf 100644 --- a/utest/speed_test.cpp +++ b/utest/speed_test.cpp @@ -57,7 +57,8 @@ DEFER1(msg.Release();); for (uint64_t i = 0; i < n; ++i) { - while (!mq.TrySend(id, msg)) {} + msg.AddRef(); + while (!mq.TrySend(id, msg.Offset())) {} ++nwrite; } }; -- Gitblit v1.8.0