X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/17ec0354e5b48f8b724d87b20828daa80bfe0bad..79853b8925152a5b89d3f8f44d64ffaf284a0196:/src/surf/cpu_ti.hpp diff --git a/src/surf/cpu_ti.hpp b/src/surf/cpu_ti.hpp index b99ecd3dea..e8fdacebc6 100644 --- a/src/surf/cpu_ti.hpp +++ b/src/surf/cpu_ti.hpp @@ -10,7 +10,6 @@ #include "src/surf/cpu_interface.hpp" #include "src/surf/trace_mgr.hpp" -#include "surf/surf_routing.h" /* Epsilon */ #define EPSILON 0.000000001 @@ -97,9 +96,9 @@ public: double getRemains() override; CpuTi *cpu_; - int indexHeap_; + int indexHeap_ = -1; int suspended_ = 0; -public: + boost::intrusive::list_member_hook<> action_ti_hook; }; @@ -116,7 +115,7 @@ public: void setSpeedTrace(tmgr_trace_t trace) override; - void apply_event(tmgr_trace_iterator_t event, double value) override; + void apply_event(tmgr_trace_event_t event, double value) override; void updateActionsFinishTime(double now); void updateRemainingAmount(double now); @@ -134,7 +133,6 @@ public: double currentFrequency_; -public: boost::intrusive::list_member_hook<> cpu_ti_hook; }; @@ -149,7 +147,7 @@ public: CpuTiModel(); ~CpuTiModel() override; Cpu *createCpu(simgrid::s4u::Host *host, std::vector* speedPerPstate, int core) override; - double next_occuring_event(double now) override; + double nextOccuringEvent(double now) override; void updateActionsState(double now, double delta) override; ActionList *runningActionSetThatDoesNotNeedBeingChecked_;