SharedTaskPool.setMaxThreads

void setMaxThreads(uint maxThreads)

Update the maximal number of threads the pool may spawn. When the maximal number of threads is reduced, existing threads are not immediately shut down, see [glib.thread_pool.ThreadPool.setMaxThreads].

Setting max_threads to 0 effectively freezes the pool.

Parameters

maxThreadsMaximum number of threads to spawn.