MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _timer_thread_entry

Function _timer_thread_entry

src/timer.c:806–815  ·  view source on GitHub ↗

* @brief System timer thread entry * * @param parameter is the arg of the thread */

Source from the content-addressed store, hash-verified

804 * @param parameter is the arg of the thread
805 */
806static void _timer_thread_entry(void *parameter)
807{
808 RT_UNUSED(parameter);
809
810 while (1)
811 {
812 _timer_check(_soft_timer_list, &_stimer_lock); /* check software timer */
813 rt_sem_take(&_soft_timer_sem, RT_WAITING_FOREVER);
814 }
815}
816#endif /* RT_USING_TIMER_SOFT */
817
818/**

Callers

nothing calls this directly

Calls 2

_timer_checkFunction · 0.85
rt_sem_takeFunction · 0.85

Tested by

no test coverage detected