A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable generic_lmm_action to be lazily updated by refactoring the corresponding fields:
[simgrid.git]
/
src
/
include
/
surf
/
surf.h
diff --git
a/src/include/surf/surf.h
b/src/include/surf/surf.h
index
8cfa80a
..
93d8ebe
100644
(file)
--- a/
src/include/surf/surf.h
+++ b/
src/include/surf/surf.h
@@
-56,6
+56,13
@@
XBT_PUBLIC(int) find_model_description(s_surf_model_description_t * table,
XBT_PUBLIC(void) model_help(const char *category,
s_surf_model_description_t * table);
XBT_PUBLIC(void) model_help(const char *category,
s_surf_model_description_t * table);
+enum heap_action_type{
+ LATENCY = 100,
+ MAX_DURATION,
+ NORMAL,
+ NOTSET
+};
+
/** \brief Action structure
* \ingroup SURF_actions
*
/** \brief Action structure
* \ingroup SURF_actions
*
@@
-92,6
+99,10
@@
typedef struct surf_action_lmm {
s_surf_action_t generic_action;
lmm_variable_t variable;
int suspended;
s_surf_action_t generic_action;
lmm_variable_t variable;
int suspended;
+ s_xbt_swag_hookup_t action_list_hookup;
+ int index_heap;
+ double last_update;
+ enum heap_action_type hat;
} s_surf_action_lmm_t, *surf_action_lmm_t;
/** \brief Action states
} s_surf_action_lmm_t, *surf_action_lmm_t;
/** \brief Action states
@@
-350,7
+361,7
@@
typedef struct s_storage_type {
} s_storage_type_t, *storage_type_t;
typedef struct s_mount {
} s_storage_type_t, *storage_type_t;
typedef struct s_mount {
-
char
*id;
+
void
*id;
char *name;
} s_mount_t, *mount_t;
char *name;
} s_mount_t, *mount_t;