Skip to content

Commit 0e9e50f

Browse files
lygstateRbb666
authored andcommitted
_rt_wqueue_wait use rt_tick_t
1 parent 78dfa1f commit 0e9e50f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/ipc/waitqueue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void rt_wqueue_wakeup_all(rt_wqueue_t *queue, void *key)
198198
*/
199199
static int _rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec, int suspend_flag)
200200
{
201-
int tick;
201+
rt_tick_t tick;
202202
rt_thread_t tid = rt_thread_self();
203203
rt_timer_t tmr = &(tid->thread_timer);
204204
struct rt_wqueue_node __wait;
@@ -241,7 +241,7 @@ static int _rt_wqueue_wait(rt_wqueue_t *queue, int condition, int msec, int susp
241241
rt_list_insert_before(&(queue->waiting_list), &(__wait.list));
242242

243243
/* start timer */
244-
if (tick != RT_WAITING_FOREVER)
244+
if (tick != (rt_tick_t)RT_WAITING_FOREVER)
245245
{
246246
rt_timer_control(tmr,
247247
RT_TIMER_CTRL_SET_TIME,

0 commit comments

Comments
 (0)