From 737def8a418409e326a1e7cf0a313eb02cb9f07f Mon Sep 17 00:00:00 2001 From: wangzhaoyong Date: Thu, 10 Jul 2025 15:07:28 +0800 Subject: [PATCH] add worker deadline prio and vip prio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: [新需求]: worker d.ts新增实时优先级 https://gitee.com/openharmony/commonlibrary_ets_utils/issues/ICLESP Signed-off-by: wangzhaoyong Change-Id: I133c2f28688fb569a7d27ac7cffe6c50c847f00f --- api/@ohos.worker.d.ts | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/api/@ohos.worker.d.ts b/api/@ohos.worker.d.ts index 70479f6e97..7a4a51a6d2 100644 --- a/api/@ohos.worker.d.ts +++ b/api/@ohos.worker.d.ts @@ -166,7 +166,25 @@ export enum ThreadWorkerPriority { * @atomicservice * @since 18 */ - IDLE = 3 + IDLE = 3, + + /** + * Deadline priority, corresponding to QOS_DEADLINE_REQUEST. + * + * @syscap SystemCapability.Utils.Lang + * @atomicservice + * @since 20 + */ + DEADLINE = 4, + + /** + * Vip priority, corresponding to QOS_USER_INTERACTIVE. + * + * @syscap SystemCapability.Utils.Lang + * @atomicservice + * @since 20 + */ + VIP = 5 } /** -- Gitee