From 129de949067fa1ccd203697cb7c49c3b1561fad2 Mon Sep 17 00:00:00 2001 From: wbdu Date: Thu, 24 Mar 2022 19:54:18 +0800 Subject: [PATCH] Modify the value of worker's upper limit Describe:Changed the worker's upper limit from 50 to 8. Signed-off-by: wbdu --- jsapi/worker/worker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsapi/worker/worker.cpp b/jsapi/worker/worker.cpp index 525508a..511167f 100644 --- a/jsapi/worker/worker.cpp +++ b/jsapi/worker/worker.cpp @@ -16,7 +16,7 @@ #include "worker.h" namespace OHOS::CCRuntime::Worker { -const static int MAXWORKERS = 50; +const static int MAXWORKERS = 8; static std::list g_workers; static std::mutex g_workersMutex;