X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2949e2c105959639ef2e8b13a13cdc18f2daaa8a..c70c4fc96f1007cc65e32f813ea9afa433a6650e:/src/surf/cpu_cas01.hpp diff --git a/src/surf/cpu_cas01.hpp b/src/surf/cpu_cas01.hpp index 61b588bd4b..ed193cb666 100644 --- a/src/surf/cpu_cas01.hpp +++ b/src/surf/cpu_cas01.hpp @@ -47,11 +47,15 @@ public: CpuAction* execution_start(double size, double user_bound) override; CpuAction* execution_start(double size, int requested_cores, double user_bound) override; CpuAction* sleep(double duration) override; + void set_factor_cb(const std::function& cb) override; bool is_used() const override; protected: void on_speed_change() override; + +private: + std::function factor_cb_ = {}; }; /**********