X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fdab189916cad1bf47afa4f3c272c8ba26c36ed1..ccf671a80a47f0489c33fb1dc2a8aadfc28b5b88:/src/surf/cpu_cas01.hpp diff --git a/src/surf/cpu_cas01.hpp b/src/surf/cpu_cas01.hpp index 11cdd36331..aec4b5d99a 100644 --- a/src/surf/cpu_cas01.hpp +++ b/src/surf/cpu_cas01.hpp @@ -1,8 +1,11 @@ -/* Copyright (c) 2013-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2021. 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. */ +#ifndef SIMGRID_SURF_CPUCAS01_HPP +#define SIMGRID_SURF_CPUCAS01_HPP + #include "cpu_interface.hpp" #include "xbt/base.h" @@ -47,7 +50,7 @@ public: CpuAction* execution_start(double size, int requested_cores) override; CpuAction* sleep(double duration) override; - bool is_used() override; + bool is_used() const override; protected: void on_speed_change() override; @@ -66,7 +69,7 @@ public: CpuCas01Action(const CpuCas01Action&) = delete; CpuCas01Action& operator=(const CpuCas01Action&) = delete; ~CpuCas01Action() override; - int requested_core(); + int requested_core() const; private: int requested_core_ = 1; @@ -75,3 +78,5 @@ private: } // namespace resource } // namespace kernel } // namespace simgrid + +#endif