mirror of
https://gitee.com/openharmony/commonlibrary_ets_utils
synced 2024-11-23 15:30:10 +00:00
ffrt fix
Signed-off-by: baishimin <2258359443@qq.com>
This commit is contained in:
parent
b1e2f1ac7e
commit
a2c26f4a6a
@ -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