StarPU Handbook - StarPU Installation
starpu_task_list.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2010-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4  *
5  * StarPU is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 2.1 of the License, or (at
8  * your option) any later version.
9  *
10  * StarPU is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
15  */
16 
17 #ifndef __STARPU_TASK_LIST_H__
18 #define __STARPU_TASK_LIST_H__
19 
20 #include <starpu_task.h>
21 #include <starpu_util.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
32 /* NOTE: this needs to have at least the same size as lists in src/common/list.h */
33 #ifdef BUILDING_STARPU
34 #define STARPU_TASK_LIST_INLINE extern inline
35 #else
40 {
41  struct starpu_task *head;
42  struct starpu_task *tail;
43 };
44 #define STARPU_TASK_LIST_INLINE extern
45 #endif
46 
50 STARPU_TASK_LIST_INLINE
52 
56 STARPU_TASK_LIST_INLINE
57 void starpu_task_list_push_front(struct starpu_task_list *list, struct starpu_task *task);
58 
62 STARPU_TASK_LIST_INLINE
63 void starpu_task_list_push_back(struct starpu_task_list *list, struct starpu_task *task);
64 
68 STARPU_TASK_LIST_INLINE
70 
74 STARPU_TASK_LIST_INLINE
76 
80 STARPU_TASK_LIST_INLINE
81 int starpu_task_list_empty(const struct starpu_task_list *list);
82 
86 STARPU_TASK_LIST_INLINE
87 void starpu_task_list_erase(struct starpu_task_list *list, struct starpu_task *task);
88 
92 STARPU_TASK_LIST_INLINE
94 
98 STARPU_TASK_LIST_INLINE
100 
104 STARPU_TASK_LIST_INLINE
106 
110 STARPU_TASK_LIST_INLINE
112 
116 STARPU_TASK_LIST_INLINE
117 struct starpu_task *starpu_task_list_next(const struct starpu_task *task);
118 
122 STARPU_TASK_LIST_INLINE
123 int starpu_task_list_ismember(const struct starpu_task_list *list, const struct starpu_task *look);
124 
125 STARPU_TASK_LIST_INLINE
126 void starpu_task_list_move(struct starpu_task_list *ldst, struct starpu_task_list *lsrc);
127 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif /* __STARPU_TASK_LIST_H__ */
Definition: starpu_task.h:662
struct starpu_task * tail
Definition: starpu_task_list.h:42
struct starpu_task * head
Definition: starpu_task_list.h:41
int starpu_task_list_ismember(const struct starpu_task_list *list, const struct starpu_task *look)
struct starpu_task * starpu_task_list_next(const struct starpu_task *task)
void starpu_task_list_init(struct starpu_task_list *list)
struct starpu_task * starpu_task_list_back(const struct starpu_task_list *list)
struct starpu_task * starpu_task_list_pop_back(struct starpu_task_list *list)
void starpu_task_list_push_front(struct starpu_task_list *list, struct starpu_task *task)
struct starpu_task * starpu_task_list_front(const struct starpu_task_list *list)
struct starpu_task * starpu_task_list_begin(const struct starpu_task_list *list)
struct starpu_task * starpu_task_list_end(const struct starpu_task_list *list STARPU_ATTRIBUTE_UNUSED)
int starpu_task_list_empty(const struct starpu_task_list *list)
void starpu_task_list_push_back(struct starpu_task_list *list, struct starpu_task *task)
void starpu_task_list_erase(struct starpu_task_list *list, struct starpu_task *task)
struct starpu_task * starpu_task_list_pop_front(struct starpu_task_list *list)
Definition: starpu_task_list.h:40
#define STARPU_ATTRIBUTE_UNUSED
Definition: starpu_util.h:84