Ejemplo n.º 1
0
 public void Start(IProcessorComponent component, ProcessorContext context)
 {
     m_component = component;
     m_context   = context;
     component.Initialize(context);
     m_timer.Start();
     m_semStop.WaitOne();
 }
Ejemplo n.º 2
0
        public void Start(IProcessorComponent component, ProcessorContext context)
        {
            component.Initialize(context);

            while (!context.IsHalted)
            {
                context.IncrementCycle();
                Console.WriteLine("-------------------- Cycle {0} --------------------", context.CurrentCycle);
                component.Pulse();
                Console.WriteLine("-------------------- End Cycle --------------------\n");
            }
        }