Building a lock free continuous ring buffer
ferrous-systems.com