newFull

fun newFull(func: Func, maxThreads: <Error class: unknown class>, exclusive: Boolean): <Error class: unknown class><ThreadPool>

This function creates a new thread pool similar to g_thread_pool_new() but allowing @item_free_func to be specified to free the data passed to g_thread_pool_push() in the case that the #GThreadPool is stopped and freed before all tasks have been executed.

Return

the new #GThreadPool

Since

2.70

Parameters

func

a function to execute in the threads of the new thread pool

maxThreads

the maximal number of threads to execute concurrently in the new thread pool, -1 means no limit

exclusive

should this thread pool be exclusive?