]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/activity/ActivityImpl.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'local changes'
[simgrid.git] / src / kernel / activity / ActivityImpl.cpp
index 06a44e25d2a50584179b129a4cafa0c5842ee13b..def6d95fbe81a5b7e8f84040f03bfd62234d2ac0 100644 (file)
@@ -40,6 +40,11 @@ double ActivityImpl::get_remaining() const
   return surf_action_ ? surf_action_->get_remains() : 0;
 }
 
+const char* ActivityImpl::get_state_str() const
+{
+  return to_c_str(state_);
+}
+
 bool ActivityImpl::test()
 {
   if (state_ != State::WAITING && state_ != State::RUNNING) {