private sealed object interruptLock = new object(); // ensure that interrupt cannot overlap with shutdown public NetMeterThread(HashTree test, NetMeterThreadMonitor monitor, ListenerNotifier note) { this.monitor = monitor; threadVars = new NetMeterVariables(); testTree = test; compiler = new TestCompiler(testTree); controller = (Controller)testTree.GetArray()[0]; SearchByType <TestIterationListener> threadListenerSearcher = new SearchByType <TestIterationListener>(); test.Traverse(threadListenerSearcher); testIterationStartListeners = threadListenerSearcher.GetSearchResults(); notifier = note; running = true; }
public NetMeterThread(HashTree test, NetMeterThreadMonitor monitor, ListenerNotifier note) { this.monitor = monitor; threadVars = new NetMeterVariables(); testTree = test; compiler = new TestCompiler(testTree); controller = (Controller) testTree.GetArray()[0]; SearchByType<TestIterationListener> threadListenerSearcher = new SearchByType<TestIterationListener>(); test.Traverse(threadListenerSearcher); testIterationStartListeners = threadListenerSearcher.GetSearchResults(); notifier = note; running = true; }