summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread.c b/src/thread.c
index 475ed9d5b2..ed9dca13b6 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -779,7 +779,7 @@ RTM_EXPORT(rt_thread_mdelay);
*
* RT_THREAD_CTRL_BIND_CPU for bind the thread to a CPU.
*
- * RT_THREAD_CTRL_SET_PRIORITY for set priority level of thread.
+ * RT_THREAD_CTRL_RESET_PRIORITY for reset priority level of thread.
*
* @param arg is the argument of control command.
*
@@ -804,12 +804,12 @@ rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg)
return error;
}
- case RT_THREAD_CTRL_SET_PRIORITY:
+ case RT_THREAD_CTRL_RESET_PRIORITY:
{
rt_err_t error;
rt_sched_lock_level_t slvl;
rt_sched_lock(&slvl);
- error = rt_sched_thread_set_priority(thread, *(rt_uint8_t *)arg);
+ error = rt_sched_thread_reset_priority(thread, *(rt_uint8_t *)arg);
rt_sched_unlock(slvl);
return error;
}