[riot-users] Ringbuffer remove behavoir.

Kaspar Schleiser kaspar at schleiser.de
Wed Mar 1 16:42:01 CET 2017


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


More information about the users mailing list