[riot-users] Ringbuffer remove behavoir.

Simon Brummer simon.brummer at posteo.de
Wed Mar 1 21:50:48 CET 2017


Okay the I think I found a bug in ringbuffer_remove. I'll provide a test 
and a fix tomorrow.

Am 2017-03-01 16:42 schrieb Kaspar Schleiser:
> Hi Simon,
> 
> On 03/01/2017 04:34 PM, Simon Brummer wrote:
>> I have  a question regarding the core ringbuffer.
>> The remove function obviously removes elements from a ringbuffer.
>> What elements are removed? The latest added elements or earliest added
>> elements.
> 
> ringbuffer_remove() works like ringbuffer_get() without putting the
> removed elements anywhere. It removes the earliest added elements.
> 
> Kaspar
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users


More information about the users mailing list