X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d25ee31741e8dd64436721b11fe82a0969f369cf..9f3d937b490d869f1f6e5baa007a65a0ad30205b:/src/surf/cpu_private.h diff --git a/src/surf/cpu_private.h b/src/surf/cpu_private.h index 17715ee9b7..125ba40111 100644 --- a/src/surf/cpu_private.h +++ b/src/surf/cpu_private.h @@ -11,23 +11,23 @@ #include "surf_private.h" #include "xbt/dict.h" -typedef struct surf_action_cpu { +typedef struct surf_action_cpu_Cas01 { s_surf_action_t generic_action; lmm_variable_t variable; -} s_surf_action_cpu_t, *surf_action_cpu_t; + int suspended; +} s_surf_action_cpu_Cas01_t, *surf_action_cpu_Cas01_t; -typedef struct cpu { - surf_resource_t resource; /* Any such object, added in a trace - should start by this field!!! */ - const char *name; +typedef struct cpu_Cas01 { + s_surf_resource_t generic_resource; + char *name; double power_scale; double power_current; tmgr_trace_event_t power_event; e_surf_cpu_state_t state_current; tmgr_trace_event_t state_event; lmm_constraint_t constraint; -} s_cpu_t, *cpu_t; + /*Handles the properties that can be added to cpu's */ + xbt_dict_t properties; +} s_cpu_Cas01_t, *cpu_Cas01_t; -extern xbt_dict_t cpu_set; - -#endif /* _SURF_CPU_PRIVATE_H */ +#endif /* _SURF_CPU_PRIVATE_H */