!1572 commonlibrary_ets_utils ffrt接口适配

Merge pull request !1572 from baibaibai/master
This commit is contained in:
openharmony_ci 2024-10-22 13:31:05 +00:00 committed by Gitee
commit dcf0611757
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -844,10 +844,6 @@ void TaskManager::InitTaskManager(napi_env env)
}
if (EnableFfrt()) {
HILOG_INFO("taskpool:: apps use ffrt");
ffrt_set_cpu_worker_max_num(ffrt::qos_background, 1);
ffrt_set_cpu_worker_max_num(ffrt::qos_utility, 12); // 12 : worker max num
ffrt_set_cpu_worker_max_num(ffrt::qos_default, 12); // 12 : worker max num
ffrt_set_cpu_worker_max_num(ffrt::qos_user_initiated, 12); // 12 : worker max num
} else {
HILOG_INFO("taskpool:: apps do not use ffrt");
}