Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
small comments improvements around a complex code
[simgrid.git] / src / kernel / activity / ActivityImpl.hpp
index a81e6ac..f9532eb 100644 (file)
@@ -31,9 +31,15 @@ public:
 
   virtual void suspend();
   virtual void resume();
-  virtual void post()   = 0; // What to do when a simcall terminates
-  virtual void finish() = 0;
+  virtual void cancel();
 
+  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();
   virtual double get_remaining() const;
   // boost::intrusive_ptr<ActivityImpl> support:
   friend XBT_PUBLIC void intrusive_ptr_add_ref(ActivityImpl* activity);