Update the maximal number of threads the this may spawn.
When the maximal number of threads is reduced, existing threads are not immediately shut down, see set_max_threads .
Setting max_threads
to 0 effectively freezes the pool.
this | |
max_threads |
Maximum number of threads to spawn. |