set_max_threads
Description:
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.
Parameters:
this | |
max_threads |
Maximum number of threads to spawn. |