コード例 #1
0
ファイル: TService.cs プロジェクト: yangbingqi155/tnet
 private void stopt()
 {
     if (t != null)
     {
         t.Stop();
     }
     t = null;
     if (tnet != null)
     {
         tnet.Stop();
     }
     tnet = null;
 }
コード例 #2
0
ファイル: TService.cs プロジェクト: yangbingqi155/tnet
 protected override void OnStart(string[] args)
 {
     stopt();
     t    = new TThread();
     tnet = new TNetThread();
 }