Top | ![]() |
![]() |
![]() |
![]() |
Functions
AgsThread * | ags_thread_pool_pull () |
|
ags_thread_pool_start () |
AgsThreadPool * | ags_thread_pool_new () |
#define | AGS_IS_THREAD_POOL() |
#define | AGS_IS_THREAD_POOL_CLASS() |
#define | AGS_THREAD_POOL() |
#define | AGS_THREAD_POOL_CLASS() |
#define | AGS_THREAD_POOL_GET_CLASS() |
|
ags_thread_pool_flags_get_type () |
|
ags_thread_pool_get_type () |
Types and Values
#define | AGS_THREAD_POOL_DEFAULT_MAX_UNUSED_THREADS |
#define | AGS_THREAD_POOL_DEFAULT_MAX_THREADS |
enum | AgsThreadPoolFlags |
#define | AGS_TYPE_THREAD_POOL |
#define | AGS_TYPE_THREAD_POOL_FLAGS |
struct | AgsThreadPool |
struct | AgsThreadPoolClass |
Description
The AgsThreadPool acts as preinstantiated threads store. This can achieve enormeous performance.
Functions
ags_thread_pool_pull ()
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:
ags_thread_pool_start ()
void ags_thread_pool_start (AgsThreadPool *thread_pool
);
Start the thread pool.
Since:
ags_thread_pool_new ()
AgsThreadPool *
ags_thread_pool_new (AgsThread *parent
);
Create a new AgsThreadPool.
Since:
AGS_IS_THREAD_POOL()
#define AGS_IS_THREAD_POOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_THREAD_POOL))
AGS_IS_THREAD_POOL_CLASS()
#define AGS_IS_THREAD_POOL_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_THREAD_POOL))
AGS_THREAD_POOL()
#define AGS_THREAD_POOL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_THREAD_POOL, AgsThreadPool))
AGS_THREAD_POOL_CLASS()
#define AGS_THREAD_POOL_CLASS(class) (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_THREAD_POOL, AgsThreadPoolClass))
AGS_THREAD_POOL_GET_CLASS()
#define AGS_THREAD_POOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_THREAD_POOL, AgsThreadPoolClass))
Types and Values
enum AgsThreadPoolFlags
Enum values to control the behavior or indicate internal state of AgsThreadPool by enable/disable as sync_flags.
Property Details
The “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:
Signal Details
The “start”
signal
void user_function (AgsThreadPool *thread_pool,gpointer user_data)
The ::start()
Parameters
thread_pool |
the AgsThreadPool |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since: