Exemple #1
0
 public RxDataInThread(DeviceForm deviceForm)
 {
     rxDataInRspData = new RxDataInRspData(deviceForm);
     taskThread = new Thread(new ParameterizedThreadStart(TaskThread));
     taskThread.Name = "RxDataInThread";
     taskThread.Start(threadData);
     Thread.Sleep(0);
     while (!taskThread.IsAlive)
     { }
 }
Exemple #2
0
 public RxDataInThread(DeviceForm deviceForm)
 {
     rxDataInRspData = new RxDataInRspData(deviceForm);
     taskThread      = new Thread(new ParameterizedThreadStart(TaskThread));
     taskThread.Name = "RxDataInThread";
     taskThread.Start(threadData);
     Thread.Sleep(0);
     while (!taskThread.IsAlive)
     {
     }
 }