finish tqueue, fix compile problem.