X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ea74f5d95928a521a588737e81f1de94eef25d19..c6d6e5b87aed9c7080c981b11f91f2d0205623c3:/src/kernel/resource/CpuImpl.hpp?ds=sidebyside diff --git a/src/kernel/resource/CpuImpl.hpp b/src/kernel/resource/CpuImpl.hpp index e0ee3e6fc0..62377021c5 100644 --- a/src/kernel/resource/CpuImpl.hpp +++ b/src/kernel/resource/CpuImpl.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -10,12 +10,11 @@ #include "simgrid/s4u/Host.hpp" #include "src/kernel/lmm/maxmin.hpp" #include "src/kernel/resource/Resource.hpp" +#include "xbt/ex.h" #include -namespace simgrid { -namespace kernel { -namespace resource { +namespace simgrid::kernel::resource { /*********** * Classes * @@ -79,6 +78,10 @@ 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; /** @brief Get a forecast of the speed (in flops/s) if the load were as provided. @@ -170,7 +173,7 @@ 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 { @@ -190,8 +193,6 @@ public: void suspend() override; void resume() override; }; -} // namespace resource -} // namespace kernel -} // namespace simgrid +} // namespace simgrid::kernel::resource #endif /* CPU_IMPL_HPP_ */