]> pd.if.org Git - liblfds/blob - liblfds/liblfds6.1.1/liblfds611/src/lfds611_ringbuffer/lfds611_ringbuffer_delete.c
Initial import (all versions, including the new 7.1.0)
[liblfds] / liblfds / liblfds6.1.1 / liblfds611 / src / lfds611_ringbuffer / lfds611_ringbuffer_delete.c
1 #include "lfds611_ringbuffer_internal.h"\r
2 \r
3 \r
4 \r
5 \r
6 \r
7 /****************************************************************************/\r
8 void lfds611_ringbuffer_delete( struct lfds611_ringbuffer_state *rs, void (*user_data_delete_function)(void *user_data, void *user_state), void *user_state )\r
9 {\r
10   assert( rs != NULL );\r
11   // TRD : user_data_delete_function can be NULL\r
12   // TRD : user_state can be NULL\r
13 \r
14   lfds611_queue_delete( rs->qs, NULL, NULL );\r
15 \r
16   lfds611_freelist_delete( rs->fs, user_data_delete_function, user_state );\r
17 \r
18   lfds611_liblfds_aligned_free( rs );\r
19 \r
20   return;\r
21 }\r
22 \r