Modify the value of worker's upper limit

Describe:Changed the worker's upper limit from 50 to 8.

Signed-off-by: wbdu <duwenbo7@huawei.com>
This commit is contained in:
wbdu
2022-03-24 19:54:18 +08:00
parent e3986e12c4
commit 129de94906
+1 -1
View File
@@ -16,7 +16,7 @@
#include "worker.h"
namespace OHOS::CCRuntime::Worker {
const static int MAXWORKERS = 50;
const static int MAXWORKERS = 8;
static std::list<Worker*> g_workers;
static std::mutex g_workersMutex;