Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Process that suspend themselves now create the corresponding surf action
authorArnaud Legrand <arnaud.legrand@imag.fr>
Thu, 26 Apr 2012 23:39:55 +0000 (01:39 +0200)
committerArnaud Legrand <arnaud.legrand@imag.fr>
Thu, 26 Apr 2012 23:39:55 +0000 (01:39 +0200)
commitfb58fcc2c0b069aa815f1820acfa16a46720ae93
tree73d8725b9993fa17bf3a3f439288175515653b54
parentc6d610b3ae7344e3f209515558daf0b4a8667824
Process that suspend themselves now create the corresponding surf action

A process that suspends himself did not create any surf action. When
processing the simcall, the maestro only set the process as suspended
and did not answer the simcall. Likewise a resume would simply wake up
the process.  A problem with this is that if the corresponding host ever
went down, the suspended process would never have realized.

For the moment, just die whenever a process is suspended and it is not
waiting on an action that can be be suspended. The consequence is that
there is no reason to wake up a process that did not have any waiting
action.  Again, DIE if this ever happens for the moment.
src/simix/smx_process.c
src/simix/smx_process_private.h