mirror of
https://github.com/openharmony/ability_form_fwk.git
synced 2026-08-24 07:47:15 -04:00
099ae57e1b
Add TaskQos enum (QOS_DEFAULT/QOS_DEADLINE_REQUEST) to ffrt queue scheduling, allowing deadline-critical tasks like ReloadFormInfos to get higher CPU priority and reduce ffrt watchdog timeout risk that causes foundation process restart on low-end devices. Changes: - Add TaskQos enum with QOS_DEFAULT and QOS_DEADLINE_REQUEST - Add Convert2FfrtQos() to map TaskQos to ffrt qos levels - ScheduleTask/ScheduleDelayTask accept TaskQos with default QOS_DEFAULT - InitFormInfosAndRegister uses Common::TaskQos::QOS_DEADLINE_REQUEST for ReloadFormInfos - Update mock stubs to match new signatures - Add test cases for qos scheduling in both queue layers 🤖 AI[94%] 🔧 Human Fixed[0%] 🧑 Human[6%] 👌 AI Adopted[100%] Co-authored-by: opencode (glm-5.1) <ai@local> Change-Id: I08dfa0f3298b3105771493479553d79bded885ca Signed-off-by: yzy-15 <yuzhiyong6@h-partners.com>