public int ReceiveFSP(out List <SyncFrame> listFrames) { if (m_IsRunning) { listFrames = m_FSPCodec.ReadFromRecvQueue(); if (listFrames != null) { if (FSPDebuger.EnableLog) { for (int i = 0; i < listFrames.Count; i++) { SyncFrame frame = listFrames[i]; if (frame != null) { Debuger.Log(LOG_TAG_MAIN, "ReceiveFSP() [" + i + "]Frame = " + frame.ToString()); } else { Debuger.LogError(LOG_TAG_MAIN, "ReceiveFSP() [" + i + "]Frame = null, Maybe MultiThread Problem!"); } } } return(listFrames.Count); } } listFrames = null; return(0); }