2 #include "lfds700_list_addonly_ordered_singlylinked_internal.h"
8 /****************************************************************************/
9 void lfds700_list_aos_cleanup( struct lfds700_list_aos_state *laoss,
10 void (*element_cleanup_callback)(struct lfds700_list_aos_state *laoss, struct lfds700_list_aos_element *laose) )
12 struct lfds700_list_aos_element
16 LFDS700_PAL_ASSERT( laoss != NULL );
17 // TRD : element_cleanup_callback can be NULL
19 LFDS700_MISC_BARRIER_LOAD;
21 if( element_cleanup_callback == NULL )
24 laose = LFDS700_LIST_AOS_GET_START( *laoss );
26 while( laose != NULL )
30 laose = LFDS700_LIST_AOS_GET_NEXT( *laose );
32 element_cleanup_callback( laoss, temp );