- SIMIX_request_post((smx_action_t)action->data);
- }
- }
- } while(time != -1.0);
-
-}
-
-
-/**
- * \brief Does a turn of the simulation
- *
- * Executes a step in the surf simulation, adding to the two lists all the actions that finished on this turn. Schedules all processus in the process_to_run list.
- * \param actions_done List of actions done
- * \param actions_failed List of actions failed
- * \return The time spent to execute the simulation or -1 if the simulation ended
- */
-/* FIXME: this function is now deprecated, remove it */
-#if 0
-double SIMIX_solve(xbt_fifo_t actions_done, xbt_fifo_t actions_failed)
-{
-
- smx_process_t process = NULL;
- unsigned int iter;
- double elapsed_time = 0.0;
- static int state_modifications = 1;
- int actions_on_system = 0;
- smx_timer_t timer;
-
- SIMIX_process_empty_trash();
- if (XBT_LOG_ISENABLED(simix_kernel, xbt_log_priority_debug) &&
- xbt_swag_size(simix_global->process_to_run) && (elapsed_time > 0)) {
- DEBUG0("**************************************************");
- }
-
- while ((process = xbt_swag_extract(simix_global->process_to_run))) {
- DEBUG2("Scheduling %s on %s", process->name, process->smx_host->name);
- /*SIMIX_process_schedule(process);*/
- }
-
- {
- surf_action_t action = NULL;
- surf_model_t model = NULL;
- smx_action_t smx_action = NULL;
-
- void *fun = NULL;
- void *arg = NULL;
-
- xbt_dynar_foreach(model_list, iter, model) {
- if (xbt_swag_size(model->states.failed_action_set)
- || xbt_swag_size(model->states.done_action_set)) {
- state_modifications = 1;
- break;
- }
- if (xbt_swag_size(model->states.running_action_set)
- || xbt_swag_size(model->states.ready_action_set)) {
- actions_on_system = 1;