win-pvdrivers

view liblfds.6/src/ringbuffer/ringbuffer_delete.c @ 1086:3d4d85c41fc6

Added tag 1.0.1085 for changeset 896402519f15
author James Harper <james.harper@bendigoit.com.au>
date Thu Dec 12 20:06:12 2013 +1100 (2013-12-12)
parents 6300617040e0
children
line source
1 #include "ringbuffer_internal.h"
7 /****************************************************************************/
8 void ringbuffer_delete( struct ringbuffer_state *rs, void (*user_data_delete_function)(void *user_data, void *user_state), void *user_state )
9 {
10 assert( rs != NULL );
11 // TRD : user_data_delete_function can be NULL
12 // TRD : user_state can be NULL
14 queue_delete( rs->qs, NULL, NULL );
16 freelist_delete( rs->fs, user_data_delete_function, user_state );
18 abstraction_aligned_free( rs );
20 return;
21 }