Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove unused attribute name_ and method set_name()
[simgrid.git] / src / surf / cpu_cas01.hpp
index 11cdd3633103ee396a5c87fde87db2ff12e23b4d..1621b1b3fc75ad1a0f79c7067af6e3c866d5958a 100644 (file)
@@ -1,8 +1,11 @@
-/* Copyright (c) 2013-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2013-2020. 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"
 
@@ -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