mirror of
https://gitee.com/openharmony/commonlibrary_ets_utils
synced 2024-11-23 15:30:10 +00:00
!1572 commonlibrary_ets_utils ffrt接口适配
Merge pull request !1572 from baibaibai/master
This commit is contained in:
commit
dcf0611757
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user