2 #include "lfds710_freelist_internal.h"
8 /****************************************************************************/
9 void lfds710_freelist_cleanup( struct lfds710_freelist_state *fs,
10 void (*element_cleanup_callback)(struct lfds710_freelist_state *fs, struct lfds710_freelist_element *fe) )
12 struct lfds710_freelist_element
16 LFDS710_PAL_ASSERT( fs != NULL );
17 // TRD : element_cleanup_callback can be NULL
19 LFDS710_MISC_BARRIER_LOAD;
21 if( element_cleanup_callback != NULL )
23 fe = fs->top[POINTER];
30 element_cleanup_callback( fs, fe_temp );