certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/RTIA TimeManagement.cc


From: certi-cvs
Subject: [certi-cvs] certi/RTIA TimeManagement.cc
Date: Wed, 18 Jun 2008 10:02:42 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      08/06/18 10:02:42

Modified files:
        RTIA           : TimeManagement.cc 

Log message:
        Add some more trace regardind message delivery

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/RTIA/TimeManagement.cc?cvsroot=certi&r1=3.43&r2=3.44

Patches:
Index: TimeManagement.cc
===================================================================
RCS file: /sources/certi/certi/RTIA/TimeManagement.cc,v
retrieving revision 3.43
retrieving revision 3.44
diff -u -b -r3.43 -r3.44
--- TimeManagement.cc   18 Jun 2008 06:40:06 -0000      3.43
+++ TimeManagement.cc   18 Jun 2008 10:02:42 -0000      3.44
@@ -18,7 +18,7 @@
 // along with this program ; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 //
-// $Id: TimeManagement.cc,v 3.43 2008/06/18 06:40:06 erk Exp $
+// $Id: TimeManagement.cc,v 3.44 2008/06/18 10:02:42 erk Exp $
 // ----------------------------------------------------------------------------
 
 #include <config.h>
@@ -699,6 +699,7 @@
 TimeManagement::timeRegulationEnabled(FederationTime theTime, TypeException 
&e) {
     Message req;
     
+    D.Out(pdDebug,"Sending TIME_REGULATION_ENABLED to Federate");
     req.type = Message::TIME_REGULATION_ENABLED;
     req.setFederationTime(theTime);
     comm->requestFederateService(&req);
@@ -709,6 +710,7 @@
 TimeManagement::timeConstrainedEnabled(FederationTime theTime, TypeException 
&e) {
     Message req;
 
+    D.Out(pdDebug,"Sending TIME_CONSTRAINED_ENABLED to Federate");
     req.type = Message::TIME_CONSTRAINED_ENABLED;
     req.setFederationTime(theTime);
     comm->requestFederateService(&req);
@@ -775,11 +777,18 @@
 
 
     // 2nd try, give a FIFO message. (discoverObject, etc.)
-    if (!msg_donne)
-        if ( _asynchronous_delivery || (_avancee_en_cours != PAS_D_AVANCEE) || 
(! _est_contraint))
+    if (!msg_donne){
+        if ( _asynchronous_delivery || (_avancee_en_cours != PAS_D_AVANCEE) || 
(! _est_contraint)) {
+               D.Out(pdDebug,"FIFO message to be delivered async_deliver=%d, 
_avancee=%d, constrained=%d",
+                                         
_asynchronous_delivery,_avancee_en_cours,_est_contraint);
           // to exclude the case not asynchronous_delivery and
           // not time advancing for a constrained federate
           msg = queues->giveFifoMessage(msg_donne, msg_restant);
+        } else {
+          D.Out(pdDebug,"FIFO message skipped async_deliver=%d, _avancee=%d, 
constrained=%d",
+                         
_asynchronous_delivery,_avancee_en_cours,_est_contraint);
+        }
+    }
 
     // If message exists, send it to federate.
     if (msg_donne) {
@@ -988,4 +997,4 @@
 
 }} // namespaces
 
-// $Id: TimeManagement.cc,v 3.43 2008/06/18 06:40:06 erk Exp $
+// $Id: TimeManagement.cc,v 3.44 2008/06/18 10:02:42 erk Exp $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]