X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/82158c44ca7df93c46d866c81ed8c02b132a6cf7..15badc71ce964f6dae6428c9a4c0198fad5d4936:/src/surf/surf_private.h?ds=sidebyside diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index dd54c47b5e..2fb09bf4cd 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -31,12 +31,12 @@ typedef struct surf_model_private { int (*resource_used) (void *resource_id); /* Share the resources to the actions and return in how much time the next action may terminate */ - double (*share_resources) (double now); + double (*share_resources) (surf_model_t model, double now); /* Update the actions' state */ - void (*update_actions_state) (double now, double delta); - void (*update_resource_state) (void *id, tmgr_trace_event_t event_type, + void (*update_actions_state) (surf_model_t model, double now, double delta); + void (*update_resource_state) (void *resource, tmgr_trace_event_t event_type, double value, double time); - void (*finalize) (void); + void (*finalize) (surf_model_t model); lmm_system_t maxmin_system; e_UM_t update_mechanism; @@ -75,6 +75,7 @@ void surf_action_resume(surf_action_t action); int surf_action_is_suspended(surf_action_t action); void surf_action_set_max_duration(surf_action_t action, double duration); void surf_action_set_priority(surf_action_t action, double priority); +void surf_action_set_bound(surf_action_t action, double bound); #ifdef HAVE_TRACING void surf_action_set_category(surf_action_t action, const char *category);