X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e5a5b0f6ee35cb592f9345a9dafa0e29df8477ef..36fa571a13985879dc627c70ecc2340af606aa42:/src/surf/cpu_ti.hpp diff --git a/src/surf/cpu_ti.hpp b/src/surf/cpu_ti.hpp index 93417f705f..90f93fe1af 100644 --- a/src/surf/cpu_ti.hpp +++ b/src/surf/cpu_ti.hpp @@ -97,7 +97,7 @@ public: double getRemains() override; CpuTi *cpu_; - int indexHeap_; + int indexHeap_ = -1; int suspended_ = 0; public: boost::intrusive::list_member_hook<> action_ti_hook; @@ -111,7 +111,7 @@ typedef boost::intrusive::list ActionTiList; ************/ class CpuTi : public Cpu { public: - CpuTi(CpuTiModel *model, simgrid::s4u::Host *host, xbt_dynar_t speedPerPstate, int core); + CpuTi(CpuTiModel *model, simgrid::s4u::Host *host, std::vector *speedPerPstate, int core); ~CpuTi() override; void setSpeedTrace(tmgr_trace_t trace) override; @@ -148,8 +148,8 @@ class CpuTiModel : public CpuModel { public: CpuTiModel(); ~CpuTiModel() override; - Cpu *createCpu(simgrid::s4u::Host *host, xbt_dynar_t speedPerPstate, int core) override; - double next_occuring_event(double now) override; + Cpu *createCpu(simgrid::s4u::Host *host, std::vector* speedPerPstate, int core) override; + double nextOccuringEvent(double now) override; void updateActionsState(double now, double delta) override; ActionList *runningActionSetThatDoesNotNeedBeingChecked_;