Example #1
0
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 );
}
Example #2
0
		void CMainLoop::Loop()
		{
			for (;;)
			{
				TimeTick();

				m_consumeMessage = 0;
				AcceptConnection();
				if (0 == m_consumeMessage)
					m_epollMng.Wait(1);
			}
		}
Example #3
0
		int ThreadLoop::Loop()
		{
			while (1)
			{
				TimeTick();

				m_consumeMessage = 0;

				AcceptConnection(); 

				WaitConnection();

				ClearTimeoutSocket(); 
				
				if (0 == m_consumeMessage)
					m_epollMng.Wait(1); 

			}

			return 0;
		}
Example #4
0
void Strategy::HandleTradeUnderlying( const ou::tf::Trade& trade ) {
  // need to queue this from the originating thread.
  ou::ChartDVBasics::HandleTrade( trade );
  TimeTick( trade );
}