From: dutot Date: Mon, 20 Feb 2006 15:19:23 +0000 (+0000) Subject: Resetting the rate to default should be done before the call to X-Git-Tag: v3.3~3428 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/80f442e05f4079b95d52af88f58374dcbc3a8f72?ds=sidebyside Resetting the rate to default should be done before the call to MSG_task_destroy which potentially frees the task and all the task structure. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1930 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/msg/gos.c b/src/msg/gos.c index 2bd20ed916..da0b42528d 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -462,6 +462,7 @@ MSG_error_t MSG_task_put(m_task_t task, state=surf_workstation_resource->common_public->action_get_state(task_simdata->comm); } DEBUG0("Action terminated"); + task->simdata->rate=-1.0; /* Sets the rate back to default */ PAJE_PROCESS_POP_STATE(process); @@ -497,7 +498,6 @@ MSG_error_t MSG_task_put_bounded(m_task_t task, MSG_error_t res = MSG_OK; task->simdata->rate=max_rate; res = MSG_task_put(task, dest, channel); - task->simdata->rate=-1.0; return(res); }