X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/293f64574aef0e51a16ed3ba8187c650765dfd99..f00F8da2:/src/surf/surf_private.h diff --git a/src/surf/surf_private.h b/src/surf/surf_private.h index d8a993cc96..296fef3cd6 100644 --- a/src/surf/surf_private.h +++ b/src/surf/surf_private.h @@ -17,6 +17,12 @@ #define NO_MAX_DURATION -1.0 +typedef enum { + UM_FULL, + UM_LAZY, + UM_UNDEFINED +} e_UM_t; + /* user-visible parameters */ extern double sg_tcp_gamma; extern double sg_sender_gap; @@ -24,7 +30,7 @@ extern double sg_latency_factor; extern double sg_bandwidth_factor; extern double sg_weight_S_parameter; extern int sg_maxmin_selective_update; -extern int sg_network_fullduplex; +extern int sg_network_crosstraffic; #ifdef HAVE_GTNETS extern double sg_gtnets_jitter; extern int sg_gtnets_jitter_seed; @@ -60,6 +66,13 @@ void surf_action_free(surf_action_t * action); void surf_action_state_set(surf_action_t action, e_surf_action_state_t state); void surf_action_data_set(surf_action_t action, void *data); /* cannot declare inline since we use a pointer to it */ + +void surf_action_lmm_update_index_heap(void *action, int i); /* callback for heap management shared by cpu and net models */ +void surf_action_lmm_heap_insert(xbt_heap_t heap, surf_action_lmm_t action, + double key, enum heap_action_type hat); +void surf_action_lmm_heap_remove(xbt_heap_t heap,surf_action_lmm_t action); + + FILE *surf_fopen(const char *name, const char *mode); extern tmgr_history_t history; @@ -156,6 +169,8 @@ typedef struct s_as { typedef struct s_network_element_info { AS_t rc_component; e_surf_network_element_type_t rc_type; + int id; + char *name; } s_network_element_info_t, *network_element_info_t; typedef int *network_element_t; @@ -164,6 +179,7 @@ struct s_routing_global { AS_t root; void *loopback; size_t size_of_link; + xbt_dynar_t last_route; xbt_dynar_t(*get_onelink_routes) (void); };