certi-devel
[Top][All Lists]
Advanced

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

Re: [certi-dev] CERTI deadlock


From: Michael Raab
Subject: Re: [certi-dev] CERTI deadlock
Date: Tue, 5 Jun 2012 14:53:09 +0200

Hello Eric,

please find attached the code snippets. Passive federate code is copied from my application.
Active federate code is included in another library to which I do not have access at the moment, but I think the attached code should fit the library implementation.

Passive Observer:
while (true)
{
   this->_rtiAmb->tick(0.1f, 0.5f);

   RTIfedTime mnet;
   this->_rtiAmb->queryLBTS(mnet);
               
   // update progress...
                               
   Thread.Sleep(10);
}

//////////////////////////////////////////////////////

Active Federate:
while (true)
{
   // query simulations next event time
   float nextTime = this->getNextTime();

   RTIfedTime reqTime( nextTime );
   this->_rtiAmb->nextEventRequest( reqTime );
   this->_nextEventRequestPending = true;

   while( this->_rtiAmb->tick( 0.0, 0.2 ) );
   {
        if(!this->_nextEventRequestPending)
         break;
   }
}

Anything obviously?

Thanks,
Michael




Von:        Eric Noulard <address@hidden>
An:        CERTI development discussions <address@hidden>
Datum:        05.06.2012 13:58
Betreff:        Re: [certi-dev] CERTI deadlock
Gesendet von:        address@hidden




2012/6/5 Michael Raab <address@hidden>:
> I just installed wireshark. What should I look for?

You should look for the network traffic (on 127.0.0.1 or the @IP of the host)
at first you may monitor TCP port 60400 which is the TCP on which
RTIG is listening.

That way you will be sure to see if there is in- out- going traffic
to/from RTIG.

The RTIA_MSG and RTIG_MSG may give you more easy to read information.

--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org

--
CERTI-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/certi-devel


reply via email to

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