Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another round of pointer-to-const for sonar.
[simgrid.git] / src / kernel / activity / SleepImpl.hpp
index b7f7968..42aed85 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-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. */
@@ -7,11 +7,8 @@
 #define SIMGRID_KERNEL_ACTIVITY_SLEEP_HPP
 
 #include "src/kernel/activity/ActivityImpl.hpp"
-#include "surf/surf.hpp"
 
-namespace simgrid {
-namespace kernel {
-namespace activity {
+namespace simgrid::kernel::activity {
 
 class XBT_PUBLIC SleepImpl : public ActivityImpl_T<SleepImpl> {
   sg_host_t host_  = nullptr;
@@ -20,12 +17,10 @@ class XBT_PUBLIC SleepImpl : public ActivityImpl_T<SleepImpl> {
 public:
   SleepImpl& set_host(s4u::Host* host);
   SleepImpl& set_duration(double duration);
-  void post() override;
+  void set_exception(actor::ActorImpl* issuer) override;
   void finish() override;
   SleepImpl* start();
 };
-} // namespace activity
-} // namespace kernel
-} // namespace simgrid
+} // namespace simgrid::kernel::activity
 
 #endif