set_max_threads


Description:

public void set_max_threads (int max_threads)

Set the maximum threads used by the pool to handle client requests.

A value of 0 will use the pool mainloop, a value of -1 will use an unlimited number of threads.

Parameters:

this

a ThreadPool

max_threads

maximum threads