X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bc5903068a99bfc50a9f7a479cc3305326f774e9..7ec65da6c7b74cae8bbaef31043bbed7bac6502b:/src/surf/surf_interface.hpp diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index ffceddc4e8..6be1e2c40e 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include @@ -63,6 +62,8 @@ XBT_PUBLIC(double) surf_get_clock(void); extern double sg_sender_gap; XBT_PUBLIC(int) SURF_CPU_LEVEL; //Surf cpu level +extern surf_callback(void, void) surfExitCallbacks; + int __surf_is_absolute_file_path(const char *file_path); /*********** @@ -197,7 +198,7 @@ public: * @brief share the resources * @details Share the resources between the actions * - * @param + * @param now [TODO] * @return the date of the next action will finish */ virtual double shareResources(double now); @@ -364,7 +365,6 @@ private: const char *p_name; xbt_dict_t p_properties; ModelPtr p_model; - void *p_resource; bool m_running; e_surf_resource_state_t m_stateCurrent; @@ -444,7 +444,14 @@ public: * * @return The bound of the current Action */ - double getBound() {return m_bound;} + double getBound(); + + /** + * @brief Set the bound of the current Action + * + * @param bound The new bound of the current Action + */ + void setBound(double bound); /** * @brief Get the start time of the current action @@ -607,15 +614,6 @@ public: */ double getRemainsNoUpdate(); -#ifdef HAVE_LATENCY_BOUND_TRACKING - /** - * @brief Check if the action is limited by latency. - * - * @return 1 if action is limited by latency, 0 otherwise - */ - int getLatencyLimited(); -#endif - /** * @brief Get the priority of the current Action * @@ -679,7 +677,6 @@ private: ActionLmmListPtr p_modifiedSet; xbt_heap_t p_actionHeap; int m_selectiveUpdate; - double m_bound; /**< the capping of the CPU use */ bool m_failed; double m_start; /**< start time */ char *p_category; /**< tracing category for categorized resource utilization monitoring */ @@ -687,7 +684,7 @@ private: #ifdef HAVE_LATENCY_BOUND_TRACKING int m_latencyLimited; /**< Set to 1 if is limited by latency, 0 otherwise */ #endif - int m_cost; + double m_cost; ModelPtr p_model; void *p_data; /**< for your convenience */