X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/183a6118a95c570b0c66695505dab7dbebc0c7b3..360d1e6510190d279551d9ca0510badccb1f8b37:/include/simgrid/s4u/Activity.hpp diff --git a/include/simgrid/s4u/Activity.hpp b/include/simgrid/s4u/Activity.hpp index d0c8b548fc..bdd1183e84 100644 --- a/include/simgrid/s4u/Activity.hpp +++ b/include/simgrid/s4u/Activity.hpp @@ -9,7 +9,7 @@ #include #include -typedef enum { inited = 0, started, canceled, errored, finished } e_s4u_activity_state_t; +enum e_s4u_activity_state_t { inited = 0, started, canceled, errored, finished }; namespace simgrid { namespace s4u { @@ -20,8 +20,11 @@ namespace s4u { */ XBT_PUBLIC_CLASS Activity { friend Comm; - friend void intrusive_ptr_release(Comm * c); - friend void intrusive_ptr_add_ref(Comm * c); + friend XBT_PUBLIC(void) intrusive_ptr_release(Comm * c); + friend XBT_PUBLIC(void) intrusive_ptr_add_ref(Comm * c); + friend Exec; + friend XBT_PUBLIC(void) intrusive_ptr_release(Exec * e); + friend XBT_PUBLIC(void) intrusive_ptr_add_ref(Exec * e); protected: Activity() = default; @@ -49,7 +52,7 @@ public: e_s4u_activity_state_t getState() {return state_;} /** Get the remaining amount of work that this Activity entails. When it's 0, it's done. */ - double getRemains(); + virtual double getRemains(); /** Set the [remaining] amount of work that this Activity will entail * * It is forbidden to change the amount of work once the Activity is started */