* @brief Duplicate all objects from one lightweight process to another * * @param[in,out] dst_lwp The destination lightweight process structure * @param[in] src_lwp The source lightweight process structure * * @note This function duplicates all objects from the source LWP to the destination LWP * by traversing the source LWP's object list and adding each object to the destination LWP
| 608 | * by traversing the source LWP's object list and adding each object to the destination LWP |
| 609 | */ |
| 610 | void lwp_user_object_dup(struct rt_lwp *dst_lwp, struct rt_lwp *src_lwp) |
| 611 | { |
| 612 | lwp_user_object_lock(src_lwp); |
| 613 | lwp_avl_traversal(src_lwp->object_root, _object_dup, dst_lwp); |
| 614 | lwp_user_object_unlock(src_lwp); |
| 615 | } |
| 616 | |
| 617 | /** |
| 618 | * @brief Create a new lightweight process (LWP) |
no test coverage detected