Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC: compute if a COMM_WAIT is enabled with the activity only, w/o the request
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 27 Jun 2017 20:44:07 +0000 (22:44 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 28 Jun 2017 12:01:14 +0000 (14:01 +0200)
src/mc/mc_base.cpp

index 6f13189..f367c99 100644 (file)
@@ -91,9 +91,9 @@ bool request_is_enabled(smx_simcall_t req)
     }
 #endif
 
-    if (simcall_comm_wait__get__timeout(req) >= 0) {
-      /* If it has a timeout it will be always be enabled, because even if the
-       * communication is not ready, it can timeout and won't block. */
+    if (act->src_timeout || act->dst_timeout) {
+      /* If it has a timeout it will be always be enabled (regardless of who declared the timeout),
+       * because even if the communication is not ready, it can timeout and won't block. */
       if (_sg_mc_timeout == 1)
         return true;
     }