1 /* Copyright (C) 2006 Britton Leo Kerin, see copyright. */ 2 3 /* This function frees the big buffer and it's associated mutex, 4 condition variable, and flag arrays. See thread_scheme.txt in 5 docs/programmer for a more general and complete descriptions of the 6 ring buffer and it's synchronization paraphenalia. */ 7 8 #include <stdlib.h> 9 10 #include "rawrec.h" 11 #include "thread_functions.h" 12 ringbuf_close(void)13void ringbuf_close(void) 14 { 15 free(ringbufp); 16 free(bytes_in_seg); 17 free(is_last_seg); 18 free(seg_mutex); 19 free(seg_mutex_attr); 20 } 21 22