Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factor get_remaining across acitvities
[simgrid.git] / src / kernel / activity / ActivityImpl.cpp
index f7f719c..2065487 100644 (file)
@@ -20,6 +20,11 @@ ActivityImpl::~ActivityImpl()
   }
 }
 
+double ActivityImpl::get_remaining() const
+{
+  return surf_action_ ? surf_action_->get_remains() : 0;
+}
+
 void ActivityImpl::suspend()
 {
   if (surf_action_ == nullptr)
@@ -38,12 +43,6 @@ void ActivityImpl::resume()
   on_resumed(*this);
 }
 
-void ActivityImpl::set_category(const std::string& category)
-{
-  if (surf_action_)
-    surf_action_->set_category(category);
-}
-
 // boost::intrusive_ptr<Activity> support:
 void intrusive_ptr_add_ref(simgrid::kernel::activity::ActivityImpl* activity)
 {