Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Fix signatures of callbacks (timer and kill_process_function)
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 30 Nov 2015 11:06:58 +0000 (12:06 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 30 Nov 2015 11:24:38 +0000 (12:24 +0100)
commit22968d21e6cec9997f587ca50c376b816a938ec9
treefde5503aaaf900ca0faeb854de6672f9e29f0634
parent9deb0e2a4e935092d6a93beff6ad97e1f7970705
[simix] Fix signatures of callbacks (timer and kill_process_function)

* Conversion between pointer-to-pointer and pointer to data is
  undefined behaviour.

* Moreover, this hides error. The kill_process_function was called in
  the timer with only one argument whreas it expects two arguments
  (the killed process and the killer process).

* Simpligy the signature of SIMIX_function_register_process_kill() to
  only take a single argument. The second one is never used.
include/simgrid/simix.h
src/simix/libsmx.c
src/simix/smx_global.c
src/simix/smx_private.h
src/surf/sg_platf.cpp