X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/79a679e4a184d17d8029fefa1e022cfbbebac88c..9abea5188b7bc67c822270a2cb300c777d3b2727:/src/kernel/resource/CpuImpl.hpp?ds=sidebyside diff --git a/src/kernel/resource/CpuImpl.hpp b/src/kernel/resource/CpuImpl.hpp index 0a80841654..ae35bd5ba9 100644 --- a/src/kernel/resource/CpuImpl.hpp +++ b/src/kernel/resource/CpuImpl.hpp @@ -78,6 +78,8 @@ public: CpuImpl* set_core_count(int core_count); virtual int get_core_count() const { return core_count_; } + void turn_off() override; + bool is_used() const override { return true; } void seal() override; @@ -171,25 +173,17 @@ protected: * Action * **********/ -/** @ingroup SURF_cpu_interface +/** @ingroup Model_cpu_interface * @brief A CpuAction represents the execution of code on one or several Cpus */ class XBT_PUBLIC CpuAction : public Action { public: using Action::Action; - /** @brief Signal emitted when the action state changes (ready/running/done, etc) - * Signature: `void(CpuAction const& action, simgrid::kernel::resource::Action::State previous)` - */ - static xbt::signal on_state_change; - void set_state(Action::State state) override; void update_remains_lazy(double now) override; std::list cpus() const; - - void suspend() override; - void resume() override; }; } // namespace simgrid::kernel::resource