ring_increment
ring->supply = ring_increment(ring, ring->supply, count);
ring->consume = ring_increment(ring, ring->consume, count);