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

Function lwp_user_object_clear

components/lwp/lwp_pid.c:569–579  ·  view source on GitHub ↗

* @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 */

Source from the content-addressed store, hash-verified

567 * @param[in,out] lwp The lightweight process structure whose object list needs clearing
568 */
569void 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

Callers 2

lwp_freeFunction · 0.85
sys_execveFunction · 0.85

Calls 4

lwp_user_object_lockFunction · 0.85
lwp_map_find_firstFunction · 0.85
_object_node_deleteFunction · 0.85
lwp_user_object_unlockFunction · 0.85

Tested by

no test coverage detected