Top |
AgsThread * | ags_thread_pool_pull () |
void | ags_thread_pool_start () |
AgsThreadPool * | ags_thread_pool_new () |
The AgsThreadPool acts as preinstantiated threads store. This can achieve enormeous performance.
AgsThread *
ags_thread_pool_pull (AgsThreadPool *thread_pool
);
Pull a previously instantiated AgsReturnableThread. Note this function may block until a new thread is available.
Since: 0.4
void
ags_thread_pool_start (AgsThreadPool *thread_pool
);
Start the thread pool.
Since: 0.4
AgsThreadPool *
ags_thread_pool_new (AgsThread *parent
);
Create a new AgsThreadPool.
Since: 0.4
“max-threads”
property“max-threads” guint
The maximum of threads to be created.
Flags: Read / Write
Allowed values: [1,65535]
Default value: 1024
“max-unused-threads”
property“max-unused-threads” guint
The maximum of unused threads.
Flags: Read / Write
Allowed values: [1,65535]
Default value: 24
“start”
signalvoid user_function (AgsThreadPool *agsthreadpool, gpointer user_data)
Flags: Run Last