use std::function
fixed a bug in constructor, I forgot to assign a value to dtm
for ios build
Merge ../ThreadPoolExecutor