hbg_queue_left_num
hbg_queue_left_num(ntc, ntu, ring),
(hbg_queue_left_num((head), (tail), (ring)) == 0)