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

Function lwp_map_find_first

components/lwp/lwp_avl.c:279–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 * the minimum element in the tree. It's commonly used for ordered traversal starting point.
278 */
279rt_weak struct lwp_avl_struct* lwp_map_find_first(struct lwp_avl_struct* ptree)
280{
281 if (ptree == AVL_EMPTY)
282 {
283 return (struct lwp_avl_struct *)0;
284 }
285 while (1)
286 {
287 if (!ptree->avl_left)
288 {
289 break;
290 }
291 ptree = ptree->avl_left;
292 }
293 return ptree;
294}

Callers 1

lwp_user_object_clearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected