* @brief Lock the user object lock for a lightweight process * * @param[in,out] lwp The lightweight process structure whose object lock needs locking */
| 417 | * @param[in,out] lwp The lightweight process structure whose object lock needs locking |
| 418 | */ |
| 419 | void lwp_user_object_lock(struct rt_lwp *lwp) |
| 420 | { |
| 421 | if (lwp) |
| 422 | { |
| 423 | rt_mutex_take(&lwp->object_mutex, RT_WAITING_FOREVER); |
| 424 | } |
| 425 | else |
| 426 | { |
| 427 | RT_ASSERT(0); |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | /** |
| 432 | * @brief Unlock the user object lock for a lightweight process |
no test coverage detected