X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe304706848f0a64477d4687b3ea97d5b9a0c35c..d36e9a7ac2032c4fddcb236753b99c6573129893:/src/kernel/activity/ActivityImpl.hpp diff --git a/src/kernel/activity/ActivityImpl.hpp b/src/kernel/activity/ActivityImpl.hpp index d8d591466d..f9532eb13f 100644 --- a/src/kernel/activity/ActivityImpl.hpp +++ b/src/kernel/activity/ActivityImpl.hpp @@ -32,8 +32,11 @@ public: virtual void suspend(); virtual void resume(); virtual void cancel(); - virtual void post() = 0; // What to do when a simcall terminates - virtual void finish() = 0; + + virtual void post() = 0; // Called by the main loop when the activity is marked as terminated or failed by its model. + // Setups the status, clean things up, and call finish() + virtual void finish() = 0; // Unlock all simcalls blocked on that activity, either because it was marked as done by + // the model or because it terminated without waiting for the model virtual void register_simcall(smx_simcall_t simcall); void clean_action();