コード例 #1
0
        protected override void Flush_Data_Frames( long current_time )
        {
            base.Flush_Data_Frames( current_time );

            if ( !m_CurrentPersistenceFrame.Empty )
            {
                m_PersistenceInterface.Send( m_CurrentPersistenceFrame );
                m_CurrentPersistenceFrame = null;
            }
        }
コード例 #2
0
		// Private interface
		private void Pre_Process_Incoming_Frame( CToPersistenceFrame frame )
		{
			foreach ( var request in frame.Requests )
			{
				EPersistenceRequestType request_type = request.RequestType;

				List< CPersistenceRequest > request_list = null;
				if ( !SortedRequestLists.TryGetValue( request_type, out request_list ) )
				{
					request_list = new List< CPersistenceRequest >();
					SortedRequestLists.Add( request_type, request_list );
				}

				request_list.Add( request );
			}
		}
コード例 #3
0
        protected override void Build_Thread_Frames()
        {
            base.Build_Thread_Frames();

            if ( m_CurrentPersistenceFrame == null )
            {
                m_CurrentPersistenceFrame = new CToPersistenceFrame();
            }
        }