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

Function lwp_pid_lock_take

components/lwp/lwp_pid.c:114–122  ·  view source on GitHub ↗

* @brief Acquire the PID management mutex lock * * @note This is a blocking call that will wait indefinitely for the lock */

Source from the content-addressed store, hash-verified

112 * @note This is a blocking call that will wait indefinitely for the lock
113 */
114void lwp_pid_lock_take(void)
115{
116 LWP_DEF_RETURN_CODE(rc);
117
118 rc = lwp_mutex_take_safe(&pid_mtx, RT_WAITING_FOREVER, 0);
119 /* should never failed */
120 RT_ASSERT(rc == RT_EOK);
121 RT_UNUSED(rc);
122}
123
124/**
125 * @brief Release the PID management mutex lock

Callers 15

lwp_pid_for_eachFunction · 0.85
lwp_pid_putFunction · 0.85
lwp_createFunction · 0.85
lwp_pid2nameFunction · 0.85
lwp_name2pidFunction · 0.85
_verify_child_and_reapFunction · 0.85
cmd_killFunction · 0.85
cmd_killallFunction · 0.85
lwp_from_pid_and_lockFunction · 0.85
sys_getsidFunction · 0.85
sys_killFunction · 0.85
sys_getpriorityFunction · 0.85

Calls 1

lwp_mutex_take_safeFunction · 0.85

Tested by

no test coverage detected