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

Function lwp_pid_init

components/lwp/lwp_pid.c:79–84  ·  view source on GitHub ↗

* @brief Initialize PID management structures * * @return int Always returns 0. */

Source from the content-addressed store, hash-verified

77 * @return int Always returns 0.
78 */
79int lwp_pid_init(void)
80{
81 rt_wqueue_init(&_pid_emptyq);
82 rt_mutex_init(&pid_mtx, "pidmtx", RT_IPC_FLAG_PRIO);
83 return 0;
84}
85
86/**
87 * @brief Wait for an empty PID slot to become available

Callers 1

lwp_component_initFunction · 0.85

Calls 2

rt_wqueue_initFunction · 0.85
rt_mutex_initFunction · 0.85

Tested by

no test coverage detected