ThreadPool.setMaxIdleTime

This function will set the maximum interval that a thread waiting in the pool for new tasks can be idle for before being stopped. This function is similar to calling g_thread_pool_stop_unused_threads() on a regular timeout, except, this is done on a per thread basis. By setting interval to 0, idle threads will not be stopped. This function makes use of g_async_queue_timed_pop() using interval. Since 2.10

class ThreadPool
static
void
setMaxIdleTime
()

Parameters

interval uint

the maximum interval (1/1000ths of a second) a thread can be idle.

Meta