Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Do not deadlock when joining a process which is already dead
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 21 Jun 2016 14:15:41 +0000 (16:15 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 21 Jun 2016 14:18:24 +0000 (16:18 +0200)
commita9caff9bc48c3653f3b3ae1ef0fda6a6699a8c06
treeef753666e519c78899adf62b77d2cf1e6f054552
parentc3afdfa7a603897d1fbca56e7d1705983038405e
[simix] Do not deadlock when joining a process which is already dead

This was implemented by adding a callback SIMIX_process_on_exit() but
if the process is already dead, the callback is never called. If the
process is dead, we return directly to the calling process without any
callback.
src/simix/smx_process.cpp
src/simix/smx_process_private.h