[code_for_fun] waiting queue : complete some interface