Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SIMIX_process_resume needed to signal cond after resuming surf action.
authormarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 2 Sep 2007 09:39:55 +0000 (09:39 +0000)
committermarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 2 Sep 2007 09:39:55 +0000 (09:39 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4132 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_process.c

index f8d8337..c6516fc 100644 (file)
@@ -350,9 +350,9 @@ void SIMIX_process_resume(smx_process_t process)
     simdata->suspended = 0;
     c = simdata->cond;
     xbt_fifo_foreach(c->actions, i, act, smx_action_t) {
-      surf_workstation_model->common_public->resume(act->simdata->
-                                                      surf_action);
+      surf_workstation_model->common_public->resume(act->simdata->surf_action);
     }
+    SIMIX_cond_signal(c);
     return;
   } else {
     simdata->suspended = 0;