set_max_threads


Description:

public void set_max_threads (int value)

Set the maximum number of threads to spawn

Note that this isn't necessarily the maximum number of threads which could be in use, since threads spawned prior to lowering this value will not be destroyed until max idle time is exceeded.

If you want to increase the maximum number of threads, you should use increase_max_threads instead.

Parameters:

value

the maximum number of threads, or -1 for unlimited

See also:

get_max_threads, increase_max_threads