X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d1fc2db12e159461fa3c6a1fb60a1f8e395e91f8..92cd12d0b61dd5a17500ef7d38f7b95a80301037:/src/kernel/actor/ActorImpl.hpp diff --git a/src/kernel/actor/ActorImpl.hpp b/src/kernel/actor/ActorImpl.hpp index 54a67c6a56..d118e36bb6 100644 --- a/src/kernel/actor/ActorImpl.hpp +++ b/src/kernel/actor/ActorImpl.hpp @@ -123,7 +123,7 @@ public: void daemonize(); bool is_suspended() { return suspended_; } s4u::Actor* restart(); - activity::ActivityImplPtr suspend(ActorImpl* issuer); + void suspend(ActorImpl* issuer); void resume(); activity::ActivityImplPtr join(ActorImpl* actor, double timeout); activity::ActivityImplPtr sleep(double duration); @@ -132,6 +132,9 @@ public: /** execute the pending simcall -- must be called from the maestro context */ void simcall_handle(int value); + /** Terminates a simcall currently executed in maestro context. The actor will be restarted in the next scheduling + * round */ + void simcall_answer(); }; class ProcessArg {