win-pvdrivers

view liblfds.6/src/ringbuffer/ringbuffer_delete.c @ 1025:aa2e51f67f7c

Fix hibernate under Win8. Change debugprints.
author James Harper <james.harper@bendigoit.com.au>
date Tue Feb 19 15:14:53 2013 +1100 (2013-02-19)
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 }