Skip to content

Commit 2c1f7b7

Browse files
committed
[Kernel] fix typo in rthread_delay
1 parent df57b90 commit 2c1f7b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/rtthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ rt_err_t rt_thread_delete(rt_thread_t thread);
138138

139139
rt_err_t rt_thread_yield(void);
140140
rt_err_t rt_thread_delay(rt_tick_t tick);
141-
rt_err_t rt_thread_delay_util(rt_tick_t *tick, rt_tick_t inc_tick);
141+
rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick);
142142
rt_err_t rt_thread_mdelay(rt_int32_t ms);
143143
rt_err_t rt_thread_control(rt_thread_t thread, int cmd, void *arg);
144144
rt_err_t rt_thread_suspend(rt_thread_t thread);

src/thread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,14 +531,14 @@ rt_err_t rt_thread_delay(rt_tick_t tick)
531531
RTM_EXPORT(rt_thread_delay);
532532

533533
/**
534-
* This function will let current thread delay util (*tick + inc_tick).
534+
* This function will let current thread delay until (*tick + inc_tick).
535535
*
536536
* @param tick the tick of last wakeup.
537537
* @param inc_tick the increment tick
538538
*
539539
* @return RT_EOK
540540
*/
541-
rt_err_t rt_thread_delay_util(rt_tick_t *tick, rt_tick_t inc_tick)
541+
rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick)
542542
{
543543
register rt_base_t level;
544544
struct rt_thread *thread;

0 commit comments

Comments
 (0)