A realtime-safe single-producer single-consumer ring buffer for audio and other low-latency applications.