Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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;
        }