Loading...
Searching...
No Matches
starpu_task_list.h
Go to the documentation of this file.
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2010-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
*
* 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>
#include <starpu_util.h>
#ifdef __cplusplus
extern "C" {
#endif
/* NOTE: this needs to have at least the same size as lists in src/common/list.h */
#ifdef BUILDING_STARPU
#define STARPU_TASK_LIST_INLINE extern inline
#else
struct starpu_task_list
{
struct starpu_task *head;
struct starpu_task *tail;
};
#define STARPU_TASK_LIST_INLINE extern
#endif
STARPU_TASK_LIST_INLINE
void starpu_task_list_init(struct starpu_task_list *list);
STARPU_TASK_LIST_INLINE
void starpu_task_list_push_front(struct starpu_task_list *list, struct starpu_task *task);
STARPU_TASK_LIST_INLINE
void starpu_task_list_push_back(struct starpu_task_list *list, struct starpu_task *task);
STARPU_TASK_LIST_INLINE
struct starpu_task *starpu_task_list_front(const struct starpu_task_list *list);
STARPU_TASK_LIST_INLINE
struct starpu_task *starpu_task_list_back(const struct starpu_task_list *list);
STARPU_TASK_LIST_INLINE
int starpu_task_list_empty(const struct starpu_task_list *list);
STARPU_TASK_LIST_INLINE
void starpu_task_list_erase(struct starpu_task_list *list, struct starpu_task *task);
STARPU_TASK_LIST_INLINE
struct starpu_task *starpu_task_list_pop_front(struct starpu_task_list *list);
STARPU_TASK_LIST_INLINE
struct starpu_task *starpu_task_list_pop_back(struct starpu_task_list *list);
STARPU_TASK_LIST_INLINE
struct starpu_task *starpu_task_list_begin(const struct starpu_task_list *list);
STARPU_TASK_LIST_INLINE
struct starpu_task *starpu_task_list_end(const struct starpu_task_list *list STARPU_ATTRIBUTE_UNUSED);
STARPU_TASK_LIST_INLINE
struct starpu_task *starpu_task_list_next(const struct starpu_task *task);
STARPU_TASK_LIST_INLINE
int starpu_task_list_ismember(const struct starpu_task_list *list, const struct starpu_task *look);
STARPU_TASK_LIST_INLINE
void starpu_task_list_move(struct starpu_task_list *ldst, struct starpu_task_list *lsrc);
#ifdef __cplusplus
}
#endif
#endif /* __STARPU_TASK_LIST_H__ */
starpu_task
Definition starpu_task.h:688
starpu_task_list::tail
struct starpu_task * tail
Definition starpu_task_list.h:42
starpu_task_list::head
struct starpu_task * head
Definition starpu_task_list.h:41
starpu_task_list_next
struct starpu_task * starpu_task_list_next(const struct starpu_task *task)
starpu_task_list_ismember
int starpu_task_list_ismember(const struct starpu_task_list *list, const struct starpu_task *look)
starpu_task_list_begin
struct starpu_task * starpu_task_list_begin(const struct starpu_task_list *list)
starpu_task_list_end
struct starpu_task * starpu_task_list_end(const struct starpu_task_list *list STARPU_ATTRIBUTE_UNUSED)
starpu_task_list_init
void starpu_task_list_init(struct starpu_task_list *list)
starpu_task_list_back
struct starpu_task * starpu_task_list_back(const struct starpu_task_list *list)
starpu_task_list_front
struct starpu_task * starpu_task_list_front(const struct starpu_task_list *list)
starpu_task_list_push_front
void starpu_task_list_push_front(struct starpu_task_list *list, struct starpu_task *task)
starpu_task_list_pop_front
struct starpu_task * starpu_task_list_pop_front(struct starpu_task_list *list)
starpu_task_list_pop_back
struct starpu_task * starpu_task_list_pop_back(struct starpu_task_list *list)
starpu_task_list_empty
int starpu_task_list_empty(const struct starpu_task_list *list)
starpu_task_list_move
void starpu_task_list_move(struct starpu_task_list *ldst, struct starpu_task_list *lsrc)
starpu_task_list_push_back
void starpu_task_list_push_back(struct starpu_task_list *list, struct starpu_task *task)
starpu_task_list_erase
void starpu_task_list_erase(struct starpu_task_list *list, struct starpu_task *task)
starpu_task_list
Definition starpu_task_list.h:40
STARPU_ATTRIBUTE_UNUSED
#define STARPU_ATTRIBUTE_UNUSED
Definition starpu_util.h:84
starpu_task.h
starpu_util.h