use a pair of ring buffers for enqueuing continuations