public AsyncMultiController(IMultiController controller, int queueSize) { this.controller = controller; this.evt = new AutoResetEvent(false); this.queue = new Queue <MultiControllerInstruction>(); this.queueSize = queueSize; thread = new Thread(ThreadProc); thread.IsBackground = true; thread.Start(); }
public AsyncMultiController(IMultiController controller, int queueSize) { this.controller = controller; this.evt = new AutoResetEvent(false); this.queue = new Queue<MultiControllerInstruction>(); this.queueSize = queueSize; thread = new Thread(ThreadProc); thread.IsBackground = true; thread.Start(); }