X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/90a471de6cd70b41223dd16a09fafe6ac3e18269..7fb4337fa68b21ac48b0160cc9461c5a87199598:/src/surf/surf_interface.hpp diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index 13749c224c..c397b6bb51 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -40,6 +40,11 @@ extern XBT_PRIVATE xbt_dynar_t surf_path; extern "C" { XBT_PUBLIC(double) surf_get_clock(void); } +/** \ingroup SURF_simulation + * \brief List of hosts that have just restarted and whose autorestart process should be restarted. + */ +XBT_PUBLIC_DATA(std::vector) host_that_restart; + extern XBT_PRIVATE double sg_sender_gap; @@ -272,6 +277,13 @@ typedef boost::intrusive::member_hook< typedef boost::intrusive::list ActionLmmList; typedef ActionLmmList* ActionLmmListPtr; +/******************** + * Helper functions * + ********************/ + +double shareResourcesMaxMin(ActionList* runningActions, lmm_system_t sys, void (*solve) (lmm_system_t)); + + /********* * Model * *********/ @@ -321,8 +333,6 @@ public: virtual double next_occuring_event(double now); virtual double next_occuring_event_lazy(double now); virtual double next_occuring_event_full(double now); - double shareResourcesMaxMin(ActionList* running_actions, - lmm_system_t sys, void (*solve) (lmm_system_t)); /** * @brief Update action to the current time