A taskqueue for multithread in CPP