void Strategy::HandleQuoteUnderlying( const ou::tf::Quote& quote ) { // need to queue this from the originating thread. if ( !quote.IsValid() ) { return; } ou::ChartDVBasics::HandleQuote( quote ); TimeTick( quote ); }
void CMainLoop::Loop() { for (;;) { TimeTick(); m_consumeMessage = 0; AcceptConnection(); if (0 == m_consumeMessage) m_epollMng.Wait(1); } }
int ThreadLoop::Loop() { while (1) { TimeTick(); m_consumeMessage = 0; AcceptConnection(); WaitConnection(); ClearTimeoutSocket(); if (0 == m_consumeMessage) m_epollMng.Wait(1); } return 0; }
void Strategy::HandleTradeUnderlying( const ou::tf::Trade& trade ) { // need to queue this from the originating thread. ou::ChartDVBasics::HandleTrade( trade ); TimeTick( trade ); }