Lines Matching full:timeout

25  * 2009-10-25     Bernard      change the mb/mq receive timeout to 0 if the
350 /* no waiting, return with timeout */ in rt_sem_take()
383 /* reset the timeout of thread timer and start it */ in rt_sem_take()
701 /* no waiting, return with timeout */ in rt_mutex_take()
704 /* set error as timeout */ in rt_mutex_take()
739 /* reset the timeout of thread timer and start it */ in rt_mutex_take()
1119 * @param timeout the waiting time
1127 rt_int32_t timeout, in rt_event_recv() argument
1182 else if (timeout == 0) in rt_event_recv()
1198 /* if there is a waiting timeout, active thread timer */ in rt_event_recv()
1199 if (timeout > 0) in rt_event_recv()
1201 /* reset the timeout of thread timer and start it */ in rt_event_recv()
1204 &timeout); in rt_event_recv()
1431 * current thread will be suspended until timeout.
1435 * @param timeout the waiting time
1441 rt_int32_t timeout) in rt_mb_send_wait() argument
1462 if (mb->entry == mb->size && timeout == 0) in rt_mb_send_wait()
1475 /* no waiting, return timeout */ in rt_mb_send_wait()
1476 if (timeout == 0) in rt_mb_send_wait()
1491 if (timeout > 0) in rt_mb_send_wait()
1499 /* reset the timeout of thread timer and start it */ in rt_mb_send_wait()
1502 &timeout); in rt_mb_send_wait()
1522 /* if it's not waiting forever and then re-calculate timeout tick */ in rt_mb_send_wait()
1523 if (timeout > 0) in rt_mb_send_wait()
1526 timeout -= tick_delta; in rt_mb_send_wait()
1527 if (timeout < 0) in rt_mb_send_wait()
1528 timeout = 0; in rt_mb_send_wait()
1583 * @param timeout the waiting time
1587 rt_err_t rt_mb_recv(rt_mailbox_t mb, rt_ubase_t *value, rt_int32_t timeout) in rt_mb_recv() argument
1608 if (mb->entry == 0 && timeout == 0) in rt_mb_recv()
1621 /* no waiting, return timeout */ in rt_mb_recv()
1622 if (timeout == 0) in rt_mb_recv()
1639 if (timeout > 0) in rt_mb_recv()
1647 /* reset the timeout of thread timer and start it */ in rt_mb_recv()
1650 &timeout); in rt_mb_recv()
1670 /* if it's not waiting forever and then re-calculate timeout tick */ in rt_mb_recv()
1671 if (timeout > 0) in rt_mb_recv()
1674 timeout -= tick_delta; in rt_mb_recv()
1675 if (timeout < 0) in rt_mb_recv()
1676 timeout = 0; in rt_mb_recv()
2132 * @param timeout the waiting time
2139 rt_int32_t timeout) in rt_mq_recv() argument
2162 if (mq->entry == 0 && timeout == 0) in rt_mq_recv()
2177 /* no waiting, return timeout */ in rt_mq_recv()
2178 if (timeout == 0) in rt_mq_recv()
2194 if (timeout > 0) in rt_mq_recv()
2202 /* reset the timeout of thread timer and start it */ in rt_mq_recv()
2205 &timeout); in rt_mq_recv()
2225 /* if it's not waiting forever and then re-calculate timeout tick */ in rt_mq_recv()
2226 if (timeout > 0) in rt_mq_recv()
2229 timeout -= tick_delta; in rt_mq_recv()
2230 if (timeout < 0) in rt_mq_recv()
2231 timeout = 0; in rt_mq_recv()