Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : enable WaitTimeout requests only if cfg flag model-check/timeout:1
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 8 Nov 2012 16:19:53 +0000 (17:19 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 8 Nov 2012 16:19:53 +0000 (17:19 +0100)
src/mc/mc_request.c

index 50c7cd2..cdd8c33 100644 (file)
@@ -300,7 +300,12 @@ int MC_request_is_enabled(smx_simcall_t req)
      * communication is not ready, it can timeout and won't block.
      * On the other hand if it hasn't a timeout, check if the comm is ready.*/
     if(req->comm_wait.timeout >= 0){
-      return TRUE;
+      if(_surf_mc_timeout == 1){
+        return TRUE;
+      }else{
+        act = req->comm_wait.comm;
+        return (act->comm.src_proc && act->comm.dst_proc);
+      }
     }else{
       act = req->comm_wait.comm;
       return (act->comm.src_proc && act->comm.dst_proc);