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

Function _teardown_entry

components/lwp/lwp_runtime.c:117–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116#define INIT_PID 1
117static void _teardown_entry(struct rt_work *work, void *work_data)
118{
119 int error;
120 void (*cb_on_reboot)(void) = work_data;
121
122 /* cleanup of process */
123 do
124 {
125 error = lwp_pid_wait_for_empty(RT_KILLABLE, RT_WAITING_FOREVER);
126 }
127 while (error);
128 LOG_I("All processes exited");
129
130 cb_on_reboot();
131 return;
132}
133
134static int _get_parent_pid(struct rt_lwp *lwp)
135{

Callers

nothing calls this directly

Calls 1

lwp_pid_wait_for_emptyFunction · 0.85

Tested by

no test coverage detected