Top | ![]() |
![]() |
![]() |
![]() |
Functions
#define | AGS_TASK_GET_OBJ_MUTEX() |
|
ags_task_test_flags () |
|
ags_task_set_flags () |
|
ags_task_unset_flags () |
|
ags_task_launch () |
|
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() |
|
ags_task_get_type () |
Types and Values
#define | AGS_TYPE_TASK_FLAGS |
enum | AgsTaskFlags |
#define | AGS_TYPE_TASK |
struct | AgsTask |
struct | AgsTaskClass |
Description
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.
Functions
ags_task_test_flags ()
gboolean ags_task_test_flags (AgsTask *task
,AgsTaskFlags flags
);
Test flags
to be set on task
.
Since:
ags_task_set_flags ()
void ags_task_set_flags (AgsTask *task
,AgsTaskFlags flags
);
Enable a feature of AgsTask.
Since:
ags_task_unset_flags ()
void ags_task_unset_flags (AgsTask *task
,AgsTaskFlags flags
);
Disable a feature of AgsTask.
Since:
ags_task_failure ()
void ags_task_failure (AgsTask *task
,);
GError *error
Signals failure of task.
Since:
AGS_IS_TASK_CLASS()
#define AGS_IS_TASK_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_TASK))
AGS_TASK_CLASS()
#define AGS_TASK_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TASK, AgsTaskClass))
AGS_TASK_GET_CLASS()
#define AGS_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TASK, AgsTaskClass))
Types and Values
enum AgsTaskFlags
Enum values to control the behavior or indicate internal state of AgsTask by enable/disable as flags.
Property Details
The “task-launcher”
property
“task-launcher” AgsTaskLauncher *
The assigned AgsTaskLauncher
Owner: AgsTask
Flags: Read / Write
Since:
Signal Details
The “failure”
signal
void user_function (AgsTask *task,gpointer error,gpointer user_data)
The ::failure signal is emited if ::launch fails
Parameters
task |
the AgsTask failed to do its work. |
|
error |
the |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since: