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
Clean bound in surf
[simgrid.git]
/
src
/
surf
/
surf_interface.hpp
diff --git
a/src/surf/surf_interface.hpp
b/src/surf/surf_interface.hpp
index
06ae981
..
2b75d00
100644
(file)
--- a/
src/surf/surf_interface.hpp
+++ b/
src/surf/surf_interface.hpp
@@
-63,6
+63,8
@@
XBT_PUBLIC(double) surf_get_clock(void);
extern double sg_sender_gap;
XBT_PUBLIC(int) SURF_CPU_LEVEL; //Surf cpu level
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);
/***********
int __surf_is_absolute_file_path(const char *file_path);
/***********
@@
-197,7
+199,7
@@
public:
* @brief share the resources
* @details Share the resources between the actions
*
* @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);
* @return the date of the next action will finish
*/
virtual double shareResources(double now);
@@
-360,15
+362,13
@@
public:
*/
virtual void setState(e_surf_resource_state_t state);
*/
virtual void setState(e_surf_resource_state_t state);
-protected:
- e_surf_resource_state_t m_stateCurrent;
-
private:
const char *p_name;
xbt_dict_t p_properties;
ModelPtr p_model;
void *p_resource;
bool m_running;
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;
/* LMM */
public:
/* LMM */
public:
@@
-439,14
+439,21
@@
public:
*
* @param state The new state of the current Action
*/
*
* @param state The new state of the current Action
*/
- virtual void setState(e_surf_action_state_t state);
/**< Change state*/
+ virtual void setState(e_surf_action_state_t state);
/**
* @brief Get the bound of the current Action
*
* @return The bound of the current Action
*/
/**
* @brief Get the bound of the current Action
*
* @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
/**
* @brief Get the start time of the current action
@@
-681,7
+688,6
@@
private:
ActionLmmListPtr p_modifiedSet;
xbt_heap_t p_actionHeap;
int m_selectiveUpdate;
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 */
bool m_failed;
double m_start; /**< start time */
char *p_category; /**< tracing category for categorized resource utilization monitoring */