Top |
#define | AGS_TASK_GET_OBJ_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_IS_TASK_CLASS() |
#define | AGS_TASK() |
#define | AGS_TASK_CLASS() |
#define | AGS_TASK_GET_CLASS() |
GType | ags_task_get_type () |
#define | AGS_TYPE_TASK_FLAGS |
enum | AgsTaskFlags |
#define | AGS_TYPE_TASK |
struct | AgsTask |
struct | AgsTaskClass |
AgsTask object acts an interceptor in a thread safe context. It's
AgsTask::launch()
function is normally called by AgsTaskLauncher.
The AgsTaskLauncher within thread tree provides thread-safety within
entire tree context. You obtain the task launcher of the thread tree
by calling AgsConcurrencyProvider::get_task_launcher()
There are some task launcher with threads, too. In order to inject from one thread to another.
gboolean ags_task_test_flags (AgsTask *task
,AgsTaskFlags flags
);
Test flags
to be set on task
.
Since: 3.0.0
void ags_task_set_flags (AgsTask *task
,AgsTaskFlags flags
);
Enable a feature of AgsTask.
Since: 3.0.0
void ags_task_unset_flags (AgsTask *task
,AgsTaskFlags flags
);
Disable a feature of AgsTask.
Since: 3.0.0
void ags_task_failure (AgsTask *task
,GError *error
);
Signals failure of task.
Since: 3.0.0
#define AGS_IS_TASK_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TASK))
#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-launcher”
property“task-launcher” AgsTaskLauncher *
The assigned AgsTaskLauncher
Owner: AgsTask
Flags: Read / Write
Since: 3.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: 3.0.0