public void Start() { for (int i = 0; i < _reqListArr.Length; i++) { _reqListArr[i] = new List <BasicRequire>(); } _workFinish = false; _workSem = new Semaphore(0, 1); _workThread = new Thread(new ThreadStart(work)); _workThread.Start(); _rs485Master = TransDriver.Get(); // _rs485Master = new SimMasterDrvier(); }
static public void Set(IMasterDriver drv) { _driver = drv; }