A taskqueue in cpp for multi-thread