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

Function lwp_waitpid_kick

components/lwp/lwp_pid.c:1352–1357  ·  view source on GitHub ↗

* @brief Wakes up processes waiting for a child process status change * * @param[in] parent Parent process to notify * @param[in] self_lwp Child process that triggered the wakeup * * @return rt_err_t Returns RT_EOK on success * * @note Uses wait queue to notify parent process about child status changes */

Source from the content-addressed store, hash-verified

1350 * @note Uses wait queue to notify parent process about child status changes
1351 */
1352rt_err_t lwp_waitpid_kick(rt_lwp_t parent, rt_lwp_t self_lwp)
1353{
1354 /* waker provide the message mainly through its lwp_status */
1355 rt_wqueue_wakeup(&parent->waitpid_waiters, self_lwp);
1356 return RT_EOK;
1357}
1358
1359/**
1360 * @brief Waitpid handle structure for process status change notifications

Callers 2

_notify_parentFunction · 0.85

Calls 1

rt_wqueue_wakeupFunction · 0.85

Tested by

no test coverage detected