From: Martin Quinson Date: Sat, 13 Feb 2021 21:11:40 +0000 (+0100) Subject: Fix parallel execs after my change of yesterday X-Git-Tag: v3.27~393 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/acfd3860433a79c8620f7976ba1764d04253675b?ds=sidebyside Fix parallel execs after my change of yesterday 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. --- diff --git a/include/simgrid/s4u/Exec.hpp b/include/simgrid/s4u/Exec.hpp index 72d0e2e161..a5d1079494 100644 --- a/include/simgrid/s4u/Exec.hpp +++ b/include/simgrid/s4u/Exec.hpp @@ -33,7 +33,7 @@ class XBT_PUBLIC Exec : public Activity_T { 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 flops_amounts_; std::vector bytes_amounts_; std::vector hosts_;