重写了RingQueue()和SmallRingQueue().

Signed-off-by: shines77 <gz_shines@msn.com>