From f4cddc2d130d2e8eabf9f3f504e9d203abe295d3 Mon Sep 17 00:00:00 2001 From: louyu <244837249@qq.com> Date: Mon, 12 Jun 2023 18:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ThreadPool.h | 1 - 1 file changed, 1 deletion(-) diff --git a/ThreadPool.h b/ThreadPool.h index 6274133..8934595 100644 --- a/ThreadPool.h +++ b/ThreadPool.h @@ -254,7 +254,6 @@ private: std::atomic idleThreadSize_; // 记录空闲线程的数量 unsigned threadSizeThreshold_; // 线程数量上限阈值 - // 这里队列里不能存裸指针,避免用户传入一个临时对象,使用智能指针延长外部传进来对象的生命周期 using Task = std::function; std::queue taskQue_; // 任务队列 std::atomic taskSize_; // 任务队列任务数,用原子变量保证原子性