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 () |
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
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