public void Connect() { // Init the communication thread ThreadStart tdComm = new ThreadStart(CommunicationThread); mCommunicationThread = new Thread(tdComm); // Init the reader thread ThreadStart tdRead = new ThreadStart(ReaderThread); mReaderThread = new Thread(tdRead); // Reduce / Clear the queues mCommandQueue.Reduce(); mReplyQueue.Clear(); // Start the Threads mCommunicationThread.Start(); mReaderThread.Start(); }
public void Reset() { // Clear the queues mCommandQueue.Clear(); mReplyQueue.Clear(); }