mirror of
https://github.com/openharmony/js_worker_module.git
synced 2026-07-20 03:33:37 -04:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user