This structure represents a GHOST task.
Definition: task.h:84
ghost_error ghost_taskq_waitall()
Wait for all tasks in all queues to be finished.
Definition: taskq.c:641
ghost_error ghost_taskq_waitsome(ghost_task **, int, int *)
Wait for some tasks out of a given list of tasks.
Definition: taskq.c:679
ghost_taskq * taskq
The task queue created by ghost_taskq_create().
Definition: taskq.c:44
ghost_task * head
The first (= highest priority) task in the queue.
Definition: taskq.h:22
The task queue.
Definition: taskq.h:18
ghost_error ghost_taskq_startroutine(void *(**func)(void *))
Definition: taskq.c:379
ghost_error ghost_taskq_add(ghost_task *task)
Helper function to add a task to a queue.
Definition: taskq.c:535
Types, functions and macros for error handling.
pthread_mutex_t mutex
Serialize access to the queue.
Definition: taskq.h:30
ghost_error
Error return type.
Definition: error.h:23
ghost_error ghost_taskq_destroy()
Execute all outstanding threads and free the task queues' resources.
Definition: taskq.c:600
Types and functions for the tasks.
ghost_error ghost_taskq_create()
Initializes a task queues.
Definition: taskq.c:86
ghost_task * tail
The last (= lowest priority) task in the queue.
Definition: taskq.h:26