*
* \param name the name of the task (can be \c NULL)
* \param data the user data you want to associate with the task (can be \c NULL)
+ * \param amount amount of the task
* \return the new task
* \see SD_task_destroy()
*/
time = SD_workstation_get_computation_time(workstation_list[i], computation_amount[i]);
for (j = 0; j < workstation_nb; j++) {
- time += SD_workstation_route_get_communication_time(workstation_list[i], workstation_list[j],
- communication_amount[i * workstation_nb + j]);
+ time += SD_route_get_communication_time(workstation_list[i], workstation_list[j],
+ communication_amount[i * workstation_nb + j]);
}
if (time > max_time) {
task->amount,
task->rate);
+ DEBUG1("surf_action = %p", surf_action);
+
__SD_task_destroy_scheduling_data(task); /* now the scheduling data are not useful anymore */
__SD_task_set_state(task, SD_RUNNING);
if (task->name != NULL)
xbt_free(task->name);
+ if (task->surf_action != NULL)
+ surf_workstation_resource->common_public->action_free(task->surf_action);
+
xbt_dynar_free(&task->tasks_before);
xbt_dynar_free(&task->tasks_after);
xbt_free(task);