Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clearly state that we don't care about the return code of actors
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 4 Feb 2020 12:21:51 +0000 (13:21 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 4 Feb 2020 12:21:57 +0000 (13:21 +0100)
commit62dceedf62ca9df19fd3afee1458e21d9f211c5a
tree0073b853e87bdc2cb773fa16a50601ba3b25858a
parentcbc139a1f575f951f48b0e120bc79cbfd3cae613
Clearly state that we don't care about the return code of actors

Earlier, the actor had the exact same prototype than the C main()
function. In particular, it was supposed to return an integer. But
that value is ignored in simgrid since years (or maybe since ever).

So, change the expected return code to 'void' to make this clear and
reduce the clutter in user code.

The deprecation code should be in place until v3.30 for s4u code.

The MSG clients are not modified, and the MSG implementation is only
slightly modified with a crude cast (that mandates the
-Wno-error=cast-function-type flag on the command line when compiling
MSG).
23 files changed:
examples/c/actor-create/actor-create.c
examples/c/async-waitany/async-waitany.c
examples/s4u/actor-create/s4u-actor-create.cpp
examples/s4u/async-ready/s4u-async-ready.cpp
examples/s4u/async-wait/s4u-async-wait.cpp
examples/s4u/async-waituntil/s4u-async-waituntil.cpp
examples/s4u/dht-kademlia/s4u-dht-kademlia.cpp
examples/s4u/io-file-remote/s4u-io-file-remote.cpp
examples/s4u/platform-failures/s4u-platform-failures.cpp
examples/smpi/replay_multiple/replay_multiple.c
examples/smpi/smpi_s4u_masterslave/masterslave_mailbox_smpi.cpp
include/simgrid/engine.h
include/simgrid/msg.h
include/simgrid/s4u/Engine.hpp
include/xbt/function_types.h
src/bindings/java/jmsg.cpp
src/kernel/EngineImpl.cpp
src/kernel/EngineImpl.hpp
src/msg/msg_legacy.cpp
src/msg/msg_process.cpp
src/s4u/s4u_Engine.cpp
teshsuite/smpi/gh-139/gh-139.c
tools/cmake/MakeLib.cmake