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
Fix C++ options
[simgrid.git]
/
src
/
surf
/
surf.hpp
diff --git
a/src/surf/surf.hpp
b/src/surf/surf.hpp
index
358546a
..
31d4a34
100644
(file)
--- a/
src/surf/surf.hpp
+++ b/
src/surf/surf.hpp
@@
-7,10
+7,7
@@
#include <string>
#include <vector>
#include <memory>
#include <string>
#include <vector>
#include <memory>
-#include <boost/smart_ptr.hpp>
#include <boost/function.hpp>
#include <boost/function.hpp>
-#include <boost/functional/factory.hpp>
-#include <boost/bind.hpp>
#include "surf/trace_mgr.h"
#include "xbt/lib.h"
#include "surf/surf_routing.h"
#include "surf/trace_mgr.h"
#include "xbt/lib.h"
#include "surf/surf_routing.h"
@@
-50,7
+47,6
@@
extern xbt_dynar_t surf_path;
extern "C" {
#endif
XBT_PUBLIC(double) surf_get_clock(void);
extern "C" {
#endif
XBT_PUBLIC(double) surf_get_clock(void);
-XBT_PUBLIC(void) surf_watched_hosts(void);
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif
@@
-189,6
+185,7
@@
public:
ModelPtr getModel() {return p_model;};
virtual e_surf_resource_state_t getState();
ModelPtr getModel() {return p_model;};
virtual e_surf_resource_state_t getState();
+ virtual void setState(e_surf_resource_state_t state);
void printModel() { std::cout << p_model->getName() << "<<plop"<<std::endl;};
void *p_resource;
const char *m_name;
void printModel() { std::cout << p_model->getName() << "<<plop"<<std::endl;};
void *p_resource;
const char *m_name;
@@
-257,6
+254,7
@@
public:
xbt_swag_t p_stateSet;
double m_priority; /**< priority (1.0 by default) */
xbt_swag_t p_stateSet;
double m_priority; /**< priority (1.0 by default) */
+ double m_bound; /**< the capping of the CPU use */
bool m_failed;
double m_start; /**< start time */
double m_finish; /**< finish time : this is modified during the run and fluctuates until the task is completed */
bool m_failed;
double m_start; /**< start time */
double m_finish; /**< finish time : this is modified during the run and fluctuates until the task is completed */
@@
-285,7
+283,6
@@
private:
void updateResourceState(void *id, tmgr_trace_event_t event_type,
double value, double time);
void updateResourceState(void *id, tmgr_trace_event_t event_type,
double value, double time);
- lmm_system_t p_maxminSystem;
xbt_swag_t p_modifiedSet;
xbt_heap_t p_actionHeap;
int m_selectiveUpdate;
xbt_swag_t p_modifiedSet;
xbt_heap_t p_actionHeap;
int m_selectiveUpdate;