initial thread pool implementation
Merge branch 'origin/master'