AgsTaskThread

AgsTaskThread — task thread

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsThread
        ╰── AgsTaskThread

Implemented Interfaces

AgsTaskThread implements AgsConnectable and AgsAsyncQueue.

Includes

#include <ags/thread/ags_task_thread.h>

Description

The AgsTaskThread acts as task queue thread.

Functions

ags_task_thread_append_task ()

void
ags_task_thread_append_task (AgsTaskThread *task_thread,
                             AgsTask *task);

Adds the task to task_thread .

Parameters

task_thread

an AgsTaskThread

 

task

an AgsTask

 

Since: 0.4


ags_task_thread_append_tasks ()

void
ags_task_thread_append_tasks (AgsTaskThread *task_thread,
                              GList *list);

Concats the list with task_thread 's internal task list. Don't free the list you pass. It will be freed for you.

Parameters

task_thread

an AgsTaskThread

 

list

a GList with AgsTask as data

 

Since: 0.4


ags_task_thread_clear_cache ()

void
ags_task_thread_clear_cache (AgsTaskThread *task_thread);

Clear cache signal.

Parameters

task_thread

the AgsTaskThread

 

Since: 0.7.28


ags_task_thread_new ()

AgsTaskThread *
ags_task_thread_new ();

Create a new AgsTaskThread.

Returns

the new AgsTaskThread

Since: 0.4

Types and Values

AGS_TASK_THREAD_DEFAULT_JIFFIE

#define AGS_TASK_THREAD_DEFAULT_JIFFIE (AGS_THREAD_MAX_PRECISION)


struct AgsTaskThreadAppend

struct AgsTaskThreadAppend {
  volatile AgsTaskThread *task_thread;
  volatile gpointer data;
};

Signal Details

The “clear-cache” signal

void
user_function (AgsTaskThread *task_thread,
               gpointer       user_data)

Flags: Run Last