Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement Exec::wait_any on top of ActivitySet and deprecate one method
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 20 Jul 2023 17:56:36 +0000 (19:56 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 20 Jul 2023 22:23:22 +0000 (00:23 +0200)
commit6ee0c147e010bf1d2da12813b60593e805e49f3b
treedc0ad6169276f2913a6674aa981542b1bcc03d99
parent0388d9d59757836f3638497bea077a713ba25a42
Implement Exec::wait_any on top of ActivitySet and deprecate one method

- Also fix a bit the behavior when ActivitySet::wait_any_for() results
  in a timeout. Believe it or not, this was not tested and plainly wrong
  until now.
  Now, it's a bit too complex, as the simcall returns -1 and forces
  the caller to detect it and throw TimeoutException manually. It
  should be cleaned as in wait_for, somehow.
- The C API is not deprecated yet, because ActivitySet has no C API yet
- The C++ API is not fully deprecated yet, because the unit test is
  not converted to ActivitySet yet.

Still a long way to go to clean it up :(
examples/c/exec-waitany/exec-waitany.c
examples/c/exec-waitany/exec-waitany.tesh
include/simgrid/exec.h
include/simgrid/s4u/Exec.hpp
src/s4u/s4u_ActivitySet.cpp
src/s4u/s4u_Exec.cpp