Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s4u Engine: expose get_all_models, get_model_list
[simgrid.git] / include / simgrid / s4u / Exec.hpp
index 72d0e2e1618513da163e49ae1d8d3f1bce1406d6..0ae3e326e822b6242ce1ea6ecb1b1b8861027c35 100644 (file)
@@ -16,7 +16,7 @@ namespace s4u {
 
 /** Computation Activity, representing the asynchronous executions.
  *
- * @rst
+ * @beginrst
  * Most of them are created with :cpp:func:`simgrid::s4u::this_actor::exec_init()` or
  * :cpp:func:`simgrid::s4u::Host::execute()`, and represent a classical (sequential) execution. This can be used to
  * simulate some computation occurring in another thread when the calling actor is not blocked during the execution.
@@ -33,7 +33,7 @@ class XBT_PUBLIC Exec : public Activity_T<Exec> {
   friend kernel::activity::ExecImpl;
   double priority_              = 1.0;
   double bound_                 = 0.0;
-  double timeout_               = 0.0;
+  double timeout_               = -1.0; // Infinite timeout by default
   std::vector<double> flops_amounts_;
   std::vector<double> bytes_amounts_;
   std::vector<Host*> hosts_;
@@ -45,11 +45,9 @@ protected:
   explicit Exec(kernel::activity::ExecImplPtr pimpl);
 
 public:
-  ~Exec() override = default;
 #ifndef DOXYGEN
   Exec(Exec const&) = delete;
   Exec& operator=(Exec const&) = delete;
-
 #endif
   static xbt::signal<void(Exec const&)> on_start;
   static xbt::signal<void(Exec const&)> on_completion;