X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0cd65c1324ce75b5f574ae37a0d632abef2e0b2c..d066aef5dd1b2f34cbf9c3bb6e4a6277957296bf:/src/simdag/simdag_private.h diff --git a/src/simdag/simdag_private.h b/src/simdag/simdag_private.h deleted file mode 100644 index d2c66c3162..0000000000 --- a/src/simdag/simdag_private.h +++ /dev/null @@ -1,73 +0,0 @@ -/* Copyright (c) 2006-2015. The SimGrid Team. - * All rights reserved. */ - -/* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ - -#ifndef SIMDAG_PRIVATE_H -#define SIMDAG_PRIVATE_H -#include -#include -#include -#include "xbt/dynar.h" -#include "simgrid/simdag.h" -#include "surf/surf.h" -#include -#if HAVE_JEDULE -#include "simgrid/jedule/jedule_sd_binding.h" -#endif - -SG_BEGIN_DECL() - -/* Global variables */ - -typedef struct SD_global { - bool watch_point_reached; /* has a task just reached a watch point? */ - std::set *initial_tasks; - std::set *runnable_tasks; - std::set *completed_tasks; - - xbt_dynar_t return_set; -} s_SD_global_t; - -typedef struct SD_global *SD_global_t; - -extern XBT_PRIVATE SD_global_t sd_global; - -/* Task */ -typedef struct SD_task { - e_SD_task_state_t state; - void *data; /* user data */ - char *name; - e_SD_task_kind_t kind; - double amount; - double alpha; /* used by typed parallel tasks */ - double start_time; - double finish_time; - surf_action_t surf_action; - unsigned short watch_points; /* bit field xor()ed with masks */ - - int marked; /* used to check if the task DAG has some cycle*/ - - /* dependencies */ - std::set *inputs; - std::set *outputs; - std::set *predecessors; - std::set *successors; - - /* scheduling parameters (only exist in state SD_SCHEDULED) */ - std::vector *allocation; - double *flops_amount; - double *bytes_amount; - double rate; -} s_SD_task_t; - -/* SimDag private functions */ -XBT_PRIVATE void SD_task_set_state(SD_task_t task, e_SD_task_state_t new_state); -XBT_PRIVATE void SD_task_run(SD_task_t task); -XBT_PRIVATE bool acyclic_graph_detail(xbt_dynar_t dag); -XBT_PRIVATE void uniq_transfer_task_name(SD_task_t task); -XBT_PRIVATE const char *__get_state_name(e_SD_task_state_t state); - -SG_END_DECL() -#endif