From 7a40c65b42961756af9cfc8fac481340664786d8 Mon Sep 17 00:00:00 2001 From: Ethan Date: Fri, 24 May 2024 09:46:27 +0000 Subject: [PATCH 1/2] fix qos errcode comments Signed-off-by: Ethan --- resourceschedule/qos_manager/c/qos.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/resourceschedule/qos_manager/c/qos.h b/resourceschedule/qos_manager/c/qos.h index c92ab5b86..fdc94c1dc 100644 --- a/resourceschedule/qos_manager/c/qos.h +++ b/resourceschedule/qos_manager/c/qos.h @@ -83,7 +83,9 @@ typedef enum QoS_Level { * @brief Set the QoS level of the current thread. * * @param level Indicates the level to set. Specific level can be referenced {@link QoS_Level}. - * @return Returns int32_t, return value == 0, success, otherwise value == -1, failed. + * @return {@link QOS_SUCCESS} 0 - the operation is successful. + * {@link QOS_FAILURE} -1 - internal error failed. + * {@link QOS_INVALID_PARAMETER} -2 - level is out of range. * @see QoS_Level * @since 12 */ @@ -92,7 +94,9 @@ int OH_QoS_SetThreadQoS(QoS_Level level); /** * @brief Cancel the QoS level of the current thread. * - * @return Returns int32_t, return value == 0, success, otherwise value == -1, failed. + * @return {@link QOS_SUCCESS} 0 - the operation is successful. + * {@link QOS_FAILURE} -1 - internal error failed. + * {@linl QOS_INVALID_OPERATION} -3 - not set QoS for current thread. * @see QoS_Level * @since 12 */ @@ -103,7 +107,10 @@ int OH_QoS_ResetThreadQoS(); * * @param level This parameter is the output parameter, * and the QoS level of the thread as a {@link QoS_Level} is written to this variable. - * @return Returns int32_t, return value == 0, success, otherwise value == -1, failed. + * @return {@link QOS_SUCCESS} 0 - the operation is successful. + * {@link QOS_FAILURE} -1 - internal error failed. + * {@link QOS_INVALID_PARAMETER} -2 level is null. + * {@linl QOS_INVALID_OPERATION} -3 not set QoS for current thread. * @see QoS_Level * @since 12 */ -- Gitee From efa6284c9e437fe18e67ce9ac4228752dabb3f37 Mon Sep 17 00:00:00 2001 From: Ethan Date: Sat, 25 May 2024 06:12:24 +0000 Subject: [PATCH 2/2] add qos errcode comments Signed-off-by: Ethan --- resourceschedule/qos_manager/c/qos.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resourceschedule/qos_manager/c/qos.h b/resourceschedule/qos_manager/c/qos.h index fdc94c1dc..e0481a6d0 100644 --- a/resourceschedule/qos_manager/c/qos.h +++ b/resourceschedule/qos_manager/c/qos.h @@ -96,7 +96,7 @@ int OH_QoS_SetThreadQoS(QoS_Level level); * * @return {@link QOS_SUCCESS} 0 - the operation is successful. * {@link QOS_FAILURE} -1 - internal error failed. - * {@linl QOS_INVALID_OPERATION} -3 - not set QoS for current thread. + * {@link QOS_INVALID_OPERATION} -3 - not set QoS for current thread. * @see QoS_Level * @since 12 */ @@ -110,7 +110,7 @@ int OH_QoS_ResetThreadQoS(); * @return {@link QOS_SUCCESS} 0 - the operation is successful. * {@link QOS_FAILURE} -1 - internal error failed. * {@link QOS_INVALID_PARAMETER} -2 level is null. - * {@linl QOS_INVALID_OPERATION} -3 not set QoS for current thread. + * {@link QOS_INVALID_OPERATION} -3 not set QoS for current thread. * @see QoS_Level * @since 12 */ -- Gitee