Advanced Gtk+ Sequencer Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#include <ags/thread/ags_task_thread.h> #define AGS_TASK_THREAD_DEFAULT_JIFFIE struct AgsTaskThread; struct AgsTaskThreadAppend; struct AgsTaskThreadClass;void ags_task_thread_append_task (AgsTaskThread *task_thread
,AgsTask *task
);void ags_task_thread_append_tasks (AgsTaskThread *task_thread
,); AgsTaskThread * ags_task_thread_new (
GList *list);
GObject *devout
struct AgsTaskThread { AgsThread thread; guint flags; GMutex mutex; GCond cond; pthread_mutex_t read_mutex; pthread_mutex_t launch_mutex; volatile guint queued; volatile guint pending; volatile GList *exec; volatile GList *queue; AgsThreadPool *thread_pool; };
struct AgsTaskThreadAppend { volatile AgsTaskThread *task_thread; volatile gpointer data; };
void ags_task_thread_append_task (AgsTaskThread *task_thread
,AgsTask *task
);
Adds the task to task_thread
.
|
an AgsTaskThread |
|
an AgsTask |
Since 0.4
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.
|
an AgsTaskThread |
|
a GList with AgsTask as data |
Since 0.4
AgsTaskThread * ags_task_thread_new (GObject *devout
);
Create a new AgsTaskThread.
|
the AgsDevout |
Returns : |
the new AgsTaskThread |
Since 0.4