| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | 
							- /* StarPU --- Runtime system for heterogeneous multicore architectures.
 
-  *
 
-  * Copyright (C) 2010-2012  Université de Bordeaux 1
 
-  *
 
-  * StarPU is free software; you can redistribute it and/or modify
 
-  * it under the terms of the GNU Lesser General Public License as published by
 
-  * the Free Software Foundation; either version 2.1 of the License, or (at
 
-  * your option) any later version.
 
-  *
 
-  * StarPU is distributed in the hope that it will be useful, but
 
-  * WITHOUT ANY WARRANTY; without even the implied warranty of
 
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
-  *
 
-  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-  */
 
- #ifndef __STARPU_TASK_LIST_H__
 
- #define __STARPU_TASK_LIST_H__
 
- #include <starpu_task.h>
 
- #ifdef __cplusplus
 
- extern "C"
 
- {
 
- #endif
 
- struct starpu_task_list
 
- {
 
- 	struct starpu_task *head;
 
- 	struct starpu_task *tail;
 
- };
 
- /* If we are building starpu and not using gnu inline, we have to avoid
 
-  * declaring the functions extern, as in that case the compiler will compile
 
-  * the inline into all .o files! */
 
- #if !defined(BUILDING_STARPU) || defined(__GNUC_GNU_INLINE__)
 
- /* Initialize a list structure */
 
- void starpu_task_list_init(struct starpu_task_list *list);
 
- /* Push a task at the front of a list */
 
- void starpu_task_list_push_front(struct starpu_task_list *list, struct starpu_task *task);
 
- /* Push a task at the back of a list */
 
- void starpu_task_list_push_back(struct starpu_task_list *list, struct starpu_task *task);
 
- /* Get the front of the list (without removing it) */
 
- struct starpu_task *starpu_task_list_front(struct starpu_task_list *list);
 
- /* Get the back of the list (without removing it) */
 
- struct starpu_task *starpu_task_list_back(struct starpu_task_list *list);
 
- /* Test if a list is empty */
 
- int starpu_task_list_empty(struct starpu_task_list *list);
 
- /* Remove an element from the list */
 
- void starpu_task_list_erase(struct starpu_task_list *list, struct starpu_task *task);
 
- /* Remove the element at the front of the list */
 
- struct starpu_task *starpu_task_list_pop_front(struct starpu_task_list *list);
 
- /* Remove the element at the back of the list */
 
- struct starpu_task *starpu_task_list_pop_back(struct starpu_task_list *list);
 
- /* Get the first task of the list */
 
- struct starpu_task *starpu_task_list_begin(struct starpu_task_list *list);
 
- /* Get the end of the list */
 
- struct starpu_task *starpu_task_list_end(struct starpu_task_list *list);
 
- /* Get the next task of the list. This is not erase-safe. */
 
- struct starpu_task *starpu_task_list_next(struct starpu_task *task);
 
- #endif
 
- #ifdef __cplusplus
 
- }
 
- #endif
 
- #endif /* __STARPU_TASK_LIST_H__ */
 
 
  |