Single Producer and Single Consumer Ring Buffer