From f30510519cd83bcc924bb41aa9f4a9e644f0abb1 Mon Sep 17 00:00:00 2001 From: edwardcaoyue Date: Tue, 27 Jun 2023 11:15:26 +0800 Subject: [PATCH] add qos level Signed-off-by: edwardcaoyue --- interfaces/inner_api/qos.h | 4 +++- qos_manager/src/qos_manager.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/interfaces/inner_api/qos.h b/interfaces/inner_api/qos.h index 98a82b8..28553f7 100644 --- a/interfaces/inner_api/qos.h +++ b/interfaces/inner_api/qos.h @@ -22,7 +22,9 @@ enum class QosLevel { qos_background = 1, qos_utility, qos_default, - qos_user_initiated = 4, + qos_user_initiated, + qos_deadline_request, + qos_user_interactive, }; class QosController { diff --git a/qos_manager/src/qos_manager.cpp b/qos_manager/src/qos_manager.cpp index ec1dad6..cbd9a59 100644 --- a/qos_manager/src/qos_manager.cpp +++ b/qos_manager/src/qos_manager.cpp @@ -127,7 +127,7 @@ int QosController::SetPolicy() int QosController::SetThreadQosForOtherThread(enum QosLevel level, int tid) { int qos = static_cast(level); - if (level < QosLevel::qos_background || level > QosLevel::qos_user_initiated) { + if (level < QosLevel::qos_background || level > QosLevel::qos_user_interactive) { RME_LOGE("invalid qos level %{public}d", qos); return ERROR_NUM; } -- Gitee