push

fun push(data: <Error class: unknown class>? = null): <Error class: unknown class><Boolean>

Inserts @data into the list of tasks to be executed by @pool.

When the number of currently running threads is lower than the maximal allowed number of threads, a new thread is started (or reused) with the properties given to g_thread_pool_new(). Otherwise, @data stays in the queue until a thread in this pool finishes its previous task and processes @data.

Return

true on success, false if an error occurred

Parameters

data

a new task for @pool