diff --git a/interfaces/inner_api/qos.h b/interfaces/inner_api/qos.h index 98a82b86d9695b9009c6eac6db7097be5733fdfb..28553f7c03b1eb0639b0c88afb4854e46d3de732 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 ec1dad69a5d1bc79dbe144e05f1ed5bc588803b3..cbd9a59ef2e860974af033ace6582315b8bf83d1 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; }