SharedTaskPool.setMaxThreads

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.

class SharedTaskPool
void
setMaxThreads
()

Parameters

maxThreads uint

Maximum number of threads to spawn.