Ensure that the data in ringbuff is accessed in the right order