case SIMIX_ACTION_IO:
action_description = "I/O";
+ break;
+ /* **************************************/
+ /* TUTORIAL: New API */
+ case SIMIX_ACTION_NEW_API:
+ action_description = "NEW API";
+ /* **************************************/
+
break;
}
XBT_INFO("Process %lu (%s@%s): waiting for %s action %p (%s) in state %d to finish",
case SIMIX_ACTION_IO:
SIMIX_io_destroy(process->waiting_action);
break;
+
+ /* **************************************/
+ /* TUTORIAL: New API */
+ case SIMIX_ACTION_NEW_API:
+ SIMIX_new_api_destroy(process->waiting_action);
+ break;
+ /* **************************************/
+
}
}
if(!xbt_dynar_member(simix_global->process_to_run, &(process)) && process != issuer) {
#define GENERIC_ACTION(action) GENERIC_LMM_ACTION(action).generic_action
static void new_model_action_state_set(surf_action_t action, e_surf_action_state_t state);
-static surf_action_t new_model_action_execute ();
-
-static surf_action_t new_model_action_fct()
-{
- surf_action_t action = new_model_action_execute();
- return action;
-}
static surf_action_t new_model_action_execute ()
{
return NULL;
}
+static surf_action_t new_model_action_fct()
+{
+ surf_action_t action = new_model_action_execute();
+ return action;
+}
+
static void* new_model_create_resource(const char* id, const char* model,const char* type_id,const char* content_name)
{
THROW_UNIMPLEMENTED;