/** @{ @ingroup SURF_c_bindings */
-/**
- * @brief Get the size of the running action set of a model
- *
- * @param model The model
- * @return The size of the running action set
- */
-XBT_PUBLIC int surf_model_running_action_set_size(simgrid::kernel::resource::Model* model);
-
/**
* @brief [brief description]
* @details [long description]
/*********
* MODEL *
*********/
-int surf_model_running_action_set_size(simgrid::kernel::resource::Model* model)
-{
- return model->get_started_action_set()->size();
-}
-
void surf_cpu_action_set_bound(simgrid::kernel::resource::Action* action, double bound)
{
static_cast<simgrid::surf::CpuAction*>(action)->set_bound(bound);
XBT_INFO("Next Event : %g", now);
for (auto const& model : *all_existing_models) {
- if (surf_model_running_action_set_size(model)) {
+ if (model->get_started_action_set()->size() != 0) {
XBT_DEBUG("\t Running that model");
running = 1;
}