Top |
AgsConcurrencyProvider is implemented by AgsServerApplicationContext and AgsThreadApplicationContext.
AgsThread *
ags_concurrency_provider_get_main_loop
(AgsConcurrencyProvider *concurrency_provider
);
Get main loop of application context.
Since: 3.0.0
void ags_concurrency_provider_set_main_loop (AgsConcurrencyProvider *concurrency_provider
,AgsThread *main_loop
);
Set main loop of application context.
Since: 3.0.0
AgsTaskLauncher *
ags_concurrency_provider_get_task_launcher
(AgsConcurrencyProvider *concurrency_provider
);
Get task launcher of application context.
Since: 3.0.0
void ags_concurrency_provider_set_task_launcher (AgsConcurrencyProvider *concurrency_provider
,AgsTaskLauncher *task_launcher
);
Set task launcher of application context.
Since: 3.0.0
AgsThreadPool *
ags_concurrency_provider_get_thread_pool
(AgsConcurrencyProvider *concurrency_provider
);
Get thread pool of application context.
Since: 3.0.0
void ags_concurrency_provider_set_thread_pool (AgsConcurrencyProvider *concurrency_provider
,AgsThreadPool *thread_pool
);
Set thread pool of application context.
Since: 3.0.0
GList *
ags_concurrency_provider_get_worker (AgsConcurrencyProvider *concurrency_provider
);
Get workers of application context.
Since: 3.0.0
void ags_concurrency_provider_set_worker (AgsConcurrencyProvider *concurrency_provider
,GList *worker
);
Set workers of application context.
concurrency_provider |
||
worker |
the GList containing workers. |
[element-type Ags.WorkerThread] |
Since: 3.0.0
#define AGS_CONCURRENCY_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CONCURRENCY_PROVIDER, AgsConcurrencyProvider))
#define AGS_CONCURRENCY_PROVIDER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_CONCURRENCY_PROVIDER, AgsConcurrencyProviderInterface))
#define AGS_CONCURRENCY_PROVIDER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_CONCURRENCY_PROVIDER, AgsConcurrencyProviderInterface))
#define AGS_IS_CONCURRENCY_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CONCURRENCY_PROVIDER))
#define AGS_IS_CONCURRENCY_PROVIDER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_CONCURRENCY_PROVIDER))
#define AGS_TYPE_CONCURRENCY_PROVIDER (ags_concurrency_provider_get_type())
struct AgsConcurrencyProviderInterface { GTypeInterface ginterface; AgsThread* (*get_main_loop)(AgsConcurrencyProvider *concurrency_provider); void (*set_main_loop)(AgsConcurrencyProvider *concurrency_provider, AgsThread *main_loop); AgsTaskLauncher* (*get_task_launcher)(AgsConcurrencyProvider *concurrency_provider); void (*set_task_launcher)(AgsConcurrencyProvider *concurrency_provider, AgsTaskLauncher *task_launcher); AgsThreadPool* (*get_thread_pool)(AgsConcurrencyProvider *concurrency_provider); void (*set_thread_pool)(AgsConcurrencyProvider *concurrency_provider, AgsThreadPool *thread_pool); GList* (*get_worker)(AgsConcurrencyProvider *concurrency_provider); void (*set_worker)(AgsConcurrencyProvider *concurrency_provider, GList *worker); };