Modernizing internal ot_queue impl