Minor changes.

This commit is contained in:
Vreixo Formoso
2007-12-23 15:39:41 +01:00
parent 002a832ac3
commit b8aa48038b
4 changed files with 24 additions and 5 deletions

View File

@@ -92,6 +92,14 @@ int iso_ring_buffer_new(IsoRingBuffer **rbuf)
return ISO_SUCCESS;
}
void iso_ring_buffer_free(IsoRingBuffer *buf)
{
pthread_mutex_destroy(&buf->mutex);
pthread_cond_destroy(&buf->empty);
pthread_cond_destroy(&buf->full);
free(buf);
}
/**
* Write count bytes into buffer. It blocks until all bytes where written or
* reader close the buffer.