ThreadPool.setThreadsNum

Sets number of threads to accept new jobs If there were never so much threads created, they will be created If number of threads set is smaller than there was threads before, they are not joined but they stop getting new jobs, they stop stealing jobs and they sleep longer Locking operation

struct ThreadPool
void
setThreadsNum
(
int num
)

Meta