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: 3.0.0
void
ags_thread_pool_start (AgsThreadPool *thread_pool
);
Start the thread pool.
Since: 3.0.0
AgsThreadPool *
ags_thread_pool_new (AgsThread *parent
);
Create a new AgsThreadPool.
Since: 3.0.0
Enum values to control the behavior or indicate internal state of AgsThreadPool by enable/disable as sync_flags.
“max-threads”
property “max-threads” guint
The maximum amount of threads available.
Owner: AgsThreadPool
Flags: Read / Write
Allowed values: [1,65535]
Default value: 1024
Since: 3.0.0
“start”
signalvoid user_function (AgsThreadPool *thread_pool, gpointer user_data)
The ::start()
signal is invoked in order to started the pool.
thread_pool |
the AgsThreadPool |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0