set_max_threads


Description:

public void set_max_threads (uint max_threads)

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

a SharedTaskPool

max_threads

Maximum number of threads to spawn.