Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Get rid of intrusive check now that suspend, resume and kill have been cleaned up.
authorArnaud Legrand <arnaud.legrand@imag.fr>
Fri, 4 May 2012 11:05:44 +0000 (13:05 +0200)
committerArnaud Legrand <arnaud.legrand@imag.fr>
Fri, 4 May 2012 11:05:44 +0000 (13:05 +0200)
src/simix/smx_smurf.c

index c752587..a66b8f4 100644 (file)
@@ -33,10 +33,12 @@ void SIMIX_simcall_answer(smx_simcall_t simcall)
     XBT_DEBUG("Answer simcall %s (%d) issued by %s (%p)", SIMIX_simcall_name(simcall->call), (int)simcall->call,
         simcall->issuer->name, simcall->issuer);
     simcall->issuer->simcall.call = SIMCALL_NONE;
-    if(!xbt_dynar_member(simix_global->process_to_run, &(simcall->issuer)))
-      xbt_dynar_push_as(simix_global->process_to_run, smx_process_t, simcall->issuer);
-    else
-      DIE_IMPOSSIBLE;
+/*    This check should be useless and slows everyone. Reactivate if you see something
+ *    weird in process scheduling.
+ */
+/*    if(!xbt_dynar_member(simix_global->process_to_run, &(simcall->issuer))) */
+    xbt_dynar_push_as(simix_global->process_to_run, smx_process_t, simcall->issuer);
+/*    else DIE_IMPOSSIBLE; */
   }
 }