From 12de72a462d79c8d715a8fcd1620460abfa546fb Mon Sep 17 00:00:00 2001 From: wycwyhwyq <5f20.6d9b@gmail.com> Date: Thu, 10 Apr 2025 10:20:21 +0800 Subject: add RT_THREAD_CTRL_SET_PRIORITY --- include/rtdef.h | 2 +- include/rtsched.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/rtdef.h b/include/rtdef.h index e214828c24..99ce5992d4 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -643,7 +643,7 @@ enum #define RT_THREAD_CTRL_CHANGE_PRIORITY 0x02 /**< Change thread priority. */ #define RT_THREAD_CTRL_INFO 0x03 /**< Get thread information. */ #define RT_THREAD_CTRL_BIND_CPU 0x04 /**< Set thread bind cpu. */ -#define RT_THREAD_CTRL_SET_PRIORITY 0x05 /**< Set thread priority. */ +#define RT_THREAD_CTRL_RESET_PRIORITY 0x05 /**< Reset thread priority. */ /** * CPU usage statistics data diff --git a/include/rtsched.h b/include/rtsched.h index 5aab9624a3..5bafea93eb 100644 --- a/include/rtsched.h +++ b/include/rtsched.h @@ -128,8 +128,8 @@ rt_err_t rt_sched_thread_yield(struct rt_thread *thread); rt_err_t rt_sched_thread_close(struct rt_thread *thread); rt_err_t rt_sched_thread_ready(struct rt_thread *thread); rt_err_t rt_sched_thread_suspend(struct rt_thread *thread, rt_sched_lock_level_t level); -rt_err_t rt_sched_thread_set_priority(struct rt_thread *thread, rt_uint8_t priority); rt_err_t rt_sched_thread_change_priority(struct rt_thread *thread, rt_uint8_t priority); +rt_err_t rt_sched_thread_reset_priority(struct rt_thread *thread, rt_uint8_t priority); rt_err_t rt_sched_thread_bind_cpu(struct rt_thread *thread, int cpu); rt_uint8_t rt_sched_thread_is_suspended(struct rt_thread *thread); rt_err_t rt_sched_thread_timer_stop(struct rt_thread *thread); -- cgit v1.3.1