/* A few basic tests for the surf library */
-/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2004-2012. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/* Use whatever calling style you want... */
stateActionA = surf_cpu_model_pm->action_state_get(actionA); /* When you know actionA model type */
- stateActionB = actionB->model_type->action_state_get(actionB); /* If you're unsure about it's model type */
+ stateActionB = actionB->model_obj->action_state_get(actionB); /* If you're unsure about it's model type */
stateActionC = surf_cpu_model_pm->action_state_get(actionC); /* When you know actionA model type */
/* And just look at the state of these tasks */
while ((action =
xbt_swag_extract(surf_cpu_model_pm->states.failed_action_set))) {
XBT_DEBUG("\t * Failed : %p", action);
- action->model_type->action_unref(action);
+ action->model_obj->action_unref(action);
}
while ((action =
xbt_swag_extract(surf_cpu_model_pm->states.done_action_set))) {
XBT_DEBUG("\t * Done : %p", action);
- action->model_type->action_unref(action);
+ action->model_obj->action_unref(action);
}
XBT_DEBUG("\t Network actions");
while ((action =
xbt_swag_extract(surf_network_model->states.
failed_action_set))) {
XBT_DEBUG("\t * Failed : %p", action);
- action->model_type->action_unref(action);
+ action->model_obj->action_unref(action);
}
while ((action =
xbt_swag_extract(surf_network_model->states.
done_action_set))) {
XBT_DEBUG("\t * Done : %p", action);
- action->model_type->action_unref(action);
+ action->model_obj->action_unref(action);
}
} while ((xbt_swag_size(surf_network_model->states.running_action_set) ||