Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bypass the C binding layer (surf_action and surf_host)
[simgrid.git] / teshsuite / surf / surf_usage / surf_usage2.cpp
index 7859613..9c95d45 100644 (file)
@@ -10,6 +10,7 @@
 #include "simgrid/sg_config.h"
 #include "surf/surf.h"
 #include "surf/surfxml_parse.h" // for reset callback
+#include "src/surf/surf_interface.hpp"
 
 #include "xbt/log.h"
 XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test,
@@ -76,11 +77,11 @@ void test(char *platform)
       XBT_DEBUG("\t Actions");
       while ((action = surf_model_extract_failed_action_set((surf_model_t)model))) {
         XBT_DEBUG("\t * Failed : %p", action);
-        surf_action_unref(action);
+        action->unref();
       }
       while ((action = surf_model_extract_done_action_set((surf_model_t)model))) {
         XBT_DEBUG("\t * Done : %p", action);
-        surf_action_unref(action);
+        action->unref();
       }
       if (surf_model_running_action_set_size((surf_model_t)model)) {
         XBT_DEBUG("running that model");