From 7269739028f46675abfb5f794c34f23b60dce24a Mon Sep 17 00:00:00 2001 From: fengyang Date: Mon, 25 Nov 2024 20:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fengyang --- .../services/resschedservice/src/res_sched_service_stub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ressched/services/resschedservice/src/res_sched_service_stub.cpp b/ressched/services/resschedservice/src/res_sched_service_stub.cpp index 5f18021a..ebae0c2a 100644 --- a/ressched/services/resschedservice/src/res_sched_service_stub.cpp +++ b/ressched/services/resschedservice/src/res_sched_service_stub.cpp @@ -440,7 +440,7 @@ bool ResSchedServiceStub::IsLimitRequest(int32_t uid) auto iter = appRequestCountMap_.find(uid); if (iter == appRequestCountMap_.end()) { appRequestCountMap_[uid] = 1; - allRequestCount_ ++; + allRequestCount_.fetch_add(1); return false; } if (appRequestCountMap_[uid] >= SINGLE_UID_REQUEST_LIMIT_COUNT) { @@ -448,7 +448,7 @@ bool ResSchedServiceStub::IsLimitRequest(int32_t uid) return true; } appRequestCountMap_[uid] ++; - allRequestCount_ ++; + allRequestCount_.fetch_add(1); return false; } -- Gitee