Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move update_remains_lazy to the pimpl (as for CPUs)
authorFred Suter <suterf@ornl.gov>
Fri, 21 Oct 2022 18:17:48 +0000 (14:17 -0400)
committerFred Suter <suterf@ornl.gov>
Fri, 28 Oct 2022 11:39:36 +0000 (07:39 -0400)
src/kernel/resource/DiskImpl.cpp
src/kernel/resource/DiskImpl.hpp
src/surf/disk_s19.cpp
src/surf/disk_s19.hpp

index 07709ce..d6d679e 100644 (file)
@@ -177,4 +177,9 @@ void DiskAction::set_state(Action::State new_state)
     on_state_change(*this, previous_state, new_state);
   }
 }
+
+void DiskAction::update_remains_lazy(double /*now*/)
+{
+  THROW_IMPOSSIBLE;
+}
 } // namespace simgrid::kernel::resource
index 1c4d1ce..b55a6a3 100644 (file)
@@ -123,6 +123,7 @@ public:
 
   using Action::Action;
   void set_state(simgrid::kernel::resource::Action::State state) override;
+  void update_remains_lazy(double now) override;
 };
 
 } // namespace simgrid::kernel::resource
index e1b2bb0..1b589d3 100644 (file)
@@ -128,8 +128,4 @@ DiskS19Action::DiskS19Action(Model* model, double cost, bool failed)
 {
 }
 
-void DiskS19Action::update_remains_lazy(double /*now*/)
-{
-  THROW_IMPOSSIBLE;
-}
 } // namespace simgrid::kernel::resource
index 478b188..85d6c1c 100644 (file)
@@ -53,7 +53,6 @@ public:
 class DiskS19Action : public DiskAction {
 public:
   DiskS19Action(Model* model, double cost, bool failed);
-  void update_remains_lazy(double now) override;
 };
 
 } // namespace simgrid::kernel::resource