Feature/bip buffer spsc atomic (#402 follow-up) (#404)
* bip_buffer_spsc_atomic: fix compiler failure
The previous commit changed the pointer being const (cannot change where
the pointer is pointing after construction) to the referred data
to be const (the buffer itself is not writeable), which causes compiler
issue with the tests.
Signed-off-by: Benedek Kupper <benedek.kupper@streamunlimited.com>
* bip_buffer_spsc_atomic: whitespace cleanup for consistency
Signed-off-by: Benedek Kupper <benedek.kupper@streamunlimited.com>
* bip_buffer_spsc_atomic: clear() destroys the unread data
Signed-off-by: Benedek Kupper <benedek.kupper@streamunlimited.com>
* bip_buffer_spsc_atomic: add destructor
Signed-off-by: Benedek Kupper <benedek.kupper@streamunlimited.com>