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

Function rt_thread_system_entry

src/defunct.c:140–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139#if defined(RT_USING_SMP) || defined(RT_USING_SMART)
140static void rt_thread_system_entry(void *parameter)
141{
142 RT_UNUSED(parameter);
143
144 while (1)
145 {
146 int ret = rt_sem_take(&system_sem, RT_WAITING_FOREVER);
147 if (ret != RT_EOK)
148 {
149 rt_kprintf("failed to sem_take() error %d\n", ret);
150 RT_ASSERT(0);
151 }
152 rt_defunct_execute();
153 }
154}
155#endif
156
157void rt_thread_defunct_init(void)

Callers

nothing calls this directly

Calls 3

rt_sem_takeFunction · 0.85
rt_kprintfFunction · 0.85
rt_defunct_executeFunction · 0.85

Tested by

no test coverage detected