diff options
| author | wycwyhwyq <[email protected]> | 2025-04-10 10:20:21 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-04-13 15:25:42 +0800 |
| commit | 12de72a462d79c8d715a8fcd1620460abfa546fb (patch) | |
| tree | a165402e87e871f0ce7c7668fe0ae57bb12dc04c /include | |
| parent | da1c5c788279dab423458dafa79a85c29a9e31f6 (diff) | |
add RT_THREAD_CTRL_SET_PRIORITY
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 2 | ||||
| -rw-r--r-- | include/rtsched.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |
