From b4bda4a8e6aa1acf5e161a95642e944e08c72646 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期一, 17 一月 2022 18:02:39 +0800 Subject: [PATCH] performance --- src/common.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/common.h b/src/common.h index fe8dd9a..947fea7 100644 --- a/src/common.h +++ b/src/common.h @@ -140,6 +140,7 @@ int operator()(){return msg_.size();} virtual ~_ps(){ t_quit_.store(true, std::memory_order_relaxed); + cv_msg_.notify_all(); if (t_.joinable()) t_.join(); } -- Gitblit v1.8.0