Exemplo n.º 1
0
 /// <summary>
 ///     构造函数
 /// </summary>
 private CMotionKernel()
 {
     m_bCrdSts    = false;
     m_bHomed     = false;
     m_uCardIndex = 0;
     m_fileTcp    = CFileTcp.GetInstance();
 }
Exemplo n.º 2
0
 /// <summary>
 ///     得到单例对象
 /// </summary>
 /// <returns></returns>
 public static CFileTcp GetInstance()
 {
     if (_FILE_TCP != null)
     {
         return(_FILE_TCP);
     }
     lock (_LOCK)
     {
         if (_FILE_TCP == null)
         {
             _FILE_TCP = new CFileTcp();
         }
         return(_FILE_TCP);
     }
 }