Beispiel #1
0
 protected void InitThreads()
 {
     IsInterrupted = false;
     SuspendGate.SetState(true);
     if (EnableListeners && ListenerThread == null)
     {
         ListenerThread = new LinkDeviceListenerThread(this);
         ListenerThread.Start();
     }
     if (ReadThread == null)
     {
         ReadThread = new LinkDeviceReadThread(this);
         ReadThread.Start();
     }
     if (WriteThread == null)
     {
         WriteThread = new LinkDeviceWriteThread(this);
         WriteThread.Start();
     }
 }