Top | ![]() |
![]() |
![]() |
![]() |
#define | AGS_TASK_GET_OBJ_MUTEX() |
pthread_mutex_t * | ags_task_get_class_mutex () |
gboolean | ags_task_test_flags () |
void | ags_task_set_flags () |
void | ags_task_unset_flags () |
void | ags_task_launch () |
void | ags_task_failure () |
AgsTask * | ags_task_new () |
#define | AGS_IS_TASK() |
#define | AGS_TASK() |
#define | AGS_TASK_CLASS() |
#define | AGS_TASK_GET_CLASS() |
GType | ags_task_get_type () |
pthread_mutex_t *
ags_task_get_class_mutex ();
Use this function's returned mutex to access mutex fields.
Since: 2.0.0
gboolean ags_task_test_flags (AgsTask *task
,guint flags
);
Test flags
to be set on task
.
Since: 2.0.0
void ags_task_set_flags (AgsTask *task
,guint flags
);
Enable a feature of AgsTask.
Since: 2.0.0
void ags_task_unset_flags (AgsTask *task
,guint flags
);
Disable a feature of AgsTask.
Since: 2.0.0
void ags_task_failure (AgsTask *task
,GError *error
);
Signals failure of task.
Since: 2.0.0
#define AGS_TASK_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TASK, AgsTaskClass))
#define AGS_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TASK, AgsTaskClass))
Enum values to control the behavior or indicate internal state of AgsTask by enable/disable as flags.
“task-thread”
property“task-thread” AgsTaskThread *
The assigned AgsTaskThread
Flags: Read / Write
Since: 2.0.0
“failure”
signalvoid user_function (AgsTask *task, gpointer error, gpointer user_data)
The ::failure signal is emited if ::launch fails
task |
the AgsTask failed to do its work. |
|
error |
the GError |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0