Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix parallel execs after my change of yesterday
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 13 Feb 2021 21:11:40 +0000 (22:11 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 13 Feb 2021 21:11:43 +0000 (22:11 +0100)
The default timeout of parallel exec was 0. It was not an issue before
my fix of yesterday, which aimed at obeying timeout=0 when given.

The fix is simply to use a negative value meaning "infinite" as a
default value.

include/simgrid/s4u/Exec.hpp

index 72d0e2e..a5d1079 100644 (file)
@@ -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_;