* @brief Acquire the PID management mutex lock * * @note This is a blocking call that will wait indefinitely for the lock */
| 112 | * @note This is a blocking call that will wait indefinitely for the lock |
| 113 | */ |
| 114 | void 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 |
no test coverage detected