stop_ring
if (!stop_ring(engine))
if (!stop_ring(engine)) {
if (wait_for_atomic((!stop_ring(engine) == 0), 20)) {