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
tiny doc update and cosmetics
[simgrid.git]
/
src
/
surf
/
cpu_cas01.hpp
diff --git
a/src/surf/cpu_cas01.hpp
b/src/surf/cpu_cas01.hpp
index
cd6151c
..
0955ce2
100644
(file)
--- a/
src/surf/cpu_cas01.hpp
+++ b/
src/surf/cpu_cas01.hpp
@@
-27,8
+27,7
@@
public:
CpuCas01Model();
~CpuCas01Model() override;
CpuCas01Model();
~CpuCas01Model() override;
- Cpu *createCpu(simgrid::s4u::Host *host, xbt_dynar_t speedPerPstate, int core) override;
- double next_occuring_event_full(double now) override;
+ Cpu *createCpu(simgrid::s4u::Host *host, std::vector<double> *speedPerPstate, int core) override;
ActionList *p_cpuRunningActionSetThatDoesNotNeedBeingChecked;
};
ActionList *p_cpuRunningActionSetThatDoesNotNeedBeingChecked;
};
@@
-38,15
+37,15
@@
public:
class CpuCas01 : public Cpu {
public:
class CpuCas01 : public Cpu {
public:
- CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host,
xbt_dynar_t
speedPerPstate, int core);
+ CpuCas01(CpuCas01Model *model, simgrid::s4u::Host *host,
std::vector<double> *
speedPerPstate, int core);
~CpuCas01() override;
~CpuCas01() override;
- void apply_event(tmgr_trace_
iterator
_t event, double value) override;
+ void apply_event(tmgr_trace_
event
_t event, double value) override;
CpuAction *execution_start(double size) override;
CpuAction *sleep(double duration) override;
bool isUsed() override;
CpuAction *execution_start(double size) override;
CpuAction *sleep(double duration) override;
bool isUsed() override;
-
xbt_dynar_t
getSpeedPeakList(); // FIXME: killme to hide our internals
+
std::vector<double> *
getSpeedPeakList(); // FIXME: killme to hide our internals
protected:
void onSpeedChange() override;
protected:
void onSpeedChange() override;
@@
-59,8
+58,7
@@
class CpuCas01Action: public CpuAction {
friend CpuAction *CpuCas01::execution_start(double size);
friend CpuAction *CpuCas01::sleep(double duration);
public:
friend CpuAction *CpuCas01::execution_start(double size);
friend CpuAction *CpuCas01::sleep(double duration);
public:
- CpuCas01Action(Model *model, double cost, bool failed, double speed,
- lmm_constraint_t constraint);
+ CpuCas01Action(Model *model, double cost, bool failed, double speed, lmm_constraint_t constraint);
~CpuCas01Action() override;
};
~CpuCas01Action() override;
};