From: Arnaud Giersch Date: Tue, 11 Sep 2018 20:35:20 +0000 (+0200) Subject: Add an assert/fixme around Actor::set_auto_restart. X-Git-Tag: v3_21~92^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2e66bdc36efcaaf728af85511d74cf25cdd226c4?ds=sidebyside Add an assert/fixme around Actor::set_auto_restart. --- diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index 2d162da29b..945dfb47fd 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -76,6 +76,7 @@ void Actor::join(double timeout) void Actor::set_auto_restart(bool autorestart) { simgrid::simix::simcall([this, autorestart]() { + xbt_assert(autorestart && not pimpl_->auto_restart_); // FIXME: handle all cases pimpl_->set_auto_restart(autorestart); simgrid::kernel::actor::ProcessArg* arg = new simgrid::kernel::actor::ProcessArg(pimpl_->host_, pimpl_);