From 8063f608caae135d796ff31cb94bbba8efaaf90b Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Thu, 24 Apr 2025 10:12:37 +0800 Subject: [PATCH] =?UTF-8?q?[Bug]:=20=E5=91=8A=E8=AD=A6=E6=B6=88=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue:https://gitee.com/openharmony/commonlibrary_ets_utils/issues/IC3JPS?from=project-issue Signed-off-by: xwx1135370 --- js_concurrent_module/taskpool/worker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js_concurrent_module/taskpool/worker.cpp b/js_concurrent_module/taskpool/worker.cpp index 19a781c8..36f5dc96 100644 --- a/js_concurrent_module/taskpool/worker.cpp +++ b/js_concurrent_module/taskpool/worker.cpp @@ -726,7 +726,7 @@ bool Worker::IsNeedReport(uint64_t intervalTime) if (reportCount_ >= MAX_REPORT_TIMES) { return false; } - if (intervalTime < (reportCount_ + 1) * WORKER_ALIVE_TIME) { + if (intervalTime < static_cast(reportCount_.load() + 1) * WORKER_ALIVE_TIME) { return false; } return true; -- Gitee