set default values in threadpool() constructor