Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Using cancel() seems to be the right way to do.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 9 Feb 2019 14:39:44 +0000 (15:39 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 9 Feb 2019 14:39:44 +0000 (15:39 +0100)
src/simix/ActorImpl.cpp

index 147339d..c23b3b8 100644 (file)
@@ -475,7 +475,7 @@ void SIMIX_process_kill(smx_actor_t actor, smx_actor_t issuer)
       SIMIX_synchro_stop_waiting(actor, &actor->simcall);
 
     } else if (io != nullptr) {
-      delete io.get();
+      io->cancel();
     } else {
       simgrid::kernel::activity::ActivityImplPtr activity = actor->waiting_synchro;
       xbt_die("Activity %s is of unknown type %s", activity->name_.c_str(),