[task] changed: use single function instead of getter/setter for threadpool size