* @brief Clear all objects from the user object list of a lightweight process * * @param[in,out] lwp The lightweight process structure whose object list needs clearing */
| 567 | * @param[in,out] lwp The lightweight process structure whose object list needs clearing |
| 568 | */ |
| 569 | void lwp_user_object_clear(struct rt_lwp *lwp) |
| 570 | { |
| 571 | struct lwp_avl_struct *node; |
| 572 | |
| 573 | lwp_user_object_lock(lwp); |
| 574 | while ((node = lwp_map_find_first(lwp->object_root)) != RT_NULL) |
| 575 | { |
| 576 | _object_node_delete(lwp, node); |
| 577 | } |
| 578 | lwp_user_object_unlock(lwp); |
| 579 | } |
| 580 | |
| 581 | /** |
| 582 | * @brief Callback function for duplicating objects in AVL tree traversal |
no test coverage detected