X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab9a0c79dcf5e12d8b2f9a1096beb697853b7cc8..257fa70ab80653b27b12b27cadf82468f29f62e9:/src/surf/surf_interface.hpp diff --git a/src/surf/surf_interface.hpp b/src/surf/surf_interface.hpp index 2d69895982..6f6cdce401 100644 --- a/src/surf/surf_interface.hpp +++ b/src/surf/surf_interface.hpp @@ -97,6 +97,11 @@ typedef boost::heap::pairing_heap modifiedSetHook_; /* Used by the lazy update to list the actions to track */ + bool isLinkedModifiedSet() const { return modifiedSetHook_.is_linked(); } + + typedef boost::intrusive::member_hook, &Action::modifiedSetHook_> + ActionLmmOptions; + typedef boost::intrusive::list ActionLmmList; boost::intrusive::list_member_hook<> stateSetHook_; typedef boost::intrusive::member_hook, &Action::stateSetHook_> @@ -268,18 +273,14 @@ public: double getLastValue() const { return lastValue_; } void setLastValue(double val) { lastValue_ = val; } Action::Type getType() const { return type_; } - bool is_linked() const { return modifiedSetHook_.is_linked(); } protected: Action::SuspendStates suspended_ = Action::SuspendStates::not_suspended; }; typedef Action::ActionList ActionList; - -typedef boost::intrusive::member_hook, &Action::modifiedSetHook_> - ActionLmmOptions; -typedef boost::intrusive::list ActionLmmList; -typedef ActionLmmList* ActionLmmListPtr; +typedef Action::ActionLmmList ActionLmmList; +typedef Action::ActionLmmList* ActionLmmListPtr; /********* * Model *