X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9e4db85ebd951c8bbe13079d7543cd43227f9786..be9dfa7f1f4859668e631469d16e174e1423f0f0:/src/kernel/actor/ActorImpl.cpp diff --git a/src/kernel/actor/ActorImpl.cpp b/src/kernel/actor/ActorImpl.cpp index 2b96c7d4fc..c42198bdce 100644 --- a/src/kernel/actor/ActorImpl.cpp +++ b/src/kernel/actor/ActorImpl.cpp @@ -235,9 +235,12 @@ void ActorImpl::kill(ActorImpl* actor) actor->exit(); - if (std::find(begin(simix_global->actors_to_run), end(simix_global->actors_to_run), actor) == - end(simix_global->actors_to_run) && - actor != this) { + if (actor == this) { + XBT_DEBUG("Go on, this is a suicide,"); + } else if (std::find(begin(simix_global->actors_to_run), end(simix_global->actors_to_run), actor) != + end(simix_global->actors_to_run)) { + XBT_DEBUG("Actor %s is already in the to_run list", actor->get_cname()); + } else { XBT_DEBUG("Inserting %s in the to_run list", actor->get_cname()); simix_global->actors_to_run.push_back(actor); }