StarPU Handbook

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Functions
Task Lists

## Data Structures
struct | starpu_task_list

## Functions
static STARPU_INLINE void | starpu_task_list_init (struct starpu_task_list *list)
static STARPU_INLINE void | starpu_task_list_push_front (struct starpu_task_list *list, struct starpu_task *task)
static STARPU_INLINE void | starpu_task_list_push_back (struct starpu_task_list *list, struct starpu_task *task)
static STARPU_INLINE struct starpu_task * | starpu_task_list_front (struct starpu_task_list *list)
static STARPU_INLINE struct starpu_task * | starpu_task_list_back (struct starpu_task_list *list)
static STARPU_INLINE int | starpu_task_list_empty (struct starpu_task_list *list)
static STARPU_INLINE void | starpu_task_list_erase (struct starpu_task_list *list, struct starpu_task *task)
static STARPU_INLINE struct starpu_task * | starpu_task_list_pop_front (struct starpu_task_list *list)
static STARPU_INLINE struct starpu_task * | starpu_task_list_pop_back (struct starpu_task_list *list)
static STARPU_INLINE struct starpu_task * | starpu_task_list_begin (struct starpu_task_list *list)
static STARPU_INLINE struct starpu_task * | starpu_task_list_next (struct starpu_task *task)

## Detailed Description

## Data Structure Documentation

struct starpu_task_list

Stores a double-chained list of tasks

Data Fields
struct starpu_task * | head | head of the list
struct starpu_task * | tail | tail of the list

## Function Documentation

void starpu_task_list_init | ( | struct starpu_task_list * | list | ) |
| static

Initialize a list structure

void starpu_task_list_push_front | ( | struct starpu_task_list * | list,
|  | struct starpu_task * | task
| ) |  |
| static

Push `task` at the front of `list`

void starpu_task_list_push_back | ( | struct starpu_task_list * | list,
|  | struct starpu_task * | task
| ) |  |
| static

Push `task` at the back of `list`

struct starpu_task * starpu_task_list_front | ( | struct starpu_task_list * | list | ) |
| static

Get the front of `list` (without removing it)

struct starpu_task * starpu_task_list_back | ( | struct starpu_task_list * | list | ) |
| static

Get the back of `list` (without removing it)

int starpu_task_list_empty | ( | struct starpu_task_list * | list | ) |
| static

Test if `list` is empty

void starpu_task_list_erase | ( | struct starpu_task_list * | list,
|  | struct starpu_task * | task
| ) |  |
| static

Remove `task` from `list`

struct starpu_task * starpu_task_list_pop_front | ( | struct starpu_task_list * | list | ) |
| static

Remove the element at the front of `list`

struct starpu_task * starpu_task_list_pop_back | ( | struct starpu_task_list * | list | ) |
| static

Remove the element at the back of `list`

struct starpu_task * starpu_task_list_begin | ( | struct starpu_task_list * | list | ) |
| static

Get the first task of `list`.

struct starpu_task * starpu_task_list_next | ( | struct starpu_task * | task | ) |
| static

Get the next task of `list`. This is not erase-safe.