Message *msg = NULL;
Protocol *port = NULL;
bool gotMsg;
+ XbmcThreads::EndTime timer;
m_state = AE_TOP_UNCONFIGURED;
m_extTimeout = 1000;
while (!m_bStop)
{
gotMsg = false;
+ timer.Set(m_extTimeout);
if (m_bStateMachineSelfTrigger)
{
// wait for message
else if (m_outMsgEvent.WaitMSec(m_extTimeout))
{
+ m_extTimeout = timer.MillisLeft();
continue;
}
// time out
Message *msg = NULL;
Protocol *port = NULL;
bool gotMsg;
+ XbmcThreads::EndTime timer;
m_state = S_TOP_UNCONFIGURED;
m_extTimeout = 1000;
while (!m_bStop)
{
gotMsg = false;
+ timer.Set(m_extTimeout);
if (m_bStateMachineSelfTrigger)
{
// wait for message
else if (m_outMsgEvent.WaitMSec(m_extTimeout))
{
+ m_extTimeout = timer.MillisLeft();
continue;
}
// time out