| 138 | |
| 139 | #if defined(RT_USING_SMP) || defined(RT_USING_SMART) |
| 140 | static 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 | |
| 157 | void rt_thread_defunct_init(void) |
nothing calls this directly
no test coverage detected