if (surf_exec)
surf_exec->resume();
}
+
+double simgrid::simix::Exec::remains()
+{
+ if (state == SIMIX_RUNNING)
+ return surf_exec->getRemains();
+
+ return 0;
+}
+
+void simgrid::simix::Exec::unref()
+{
+ refcount--;
+ if (refcount > 0)
+ return;
+
+ if (surf_exec)
+ surf_exec->unref();
+
+ delete this;
+}