Zero-seconds timeout : "That's in the past already"
When using simgrid::s4u::Comm::wait_any_for
with a timeout of zero seconds, we get the following error :
[0.000000] /your_simgrid_path/src/surf/surf_c_bindings.cpp:54: [root/CRITICAL] You asked to simulate up to 0.000000, but that's in the past already
What's even more unexpected is that if the wait_any_for
is the first operation in the simulation (as far as surf is concerned), we don't have the error : it seems to happen only if the simulated-world's time has already progressed (because of other operations)
Here is a MWE that shows the unexpected behaviour : Webcretaire/simgrid-mwe-its_in_the_past_already
Commenting line 9 in its_in_the_past_already.cpp "toggles" the error
I didn't check if we have the same behaviour with other functions that can take a timeout in S4U