A simple consumer-producer queue