Пример #1
0
 public void Start(IProcessorComponent component, ProcessorContext context)
 {
     m_component = component;
     m_context   = context;
     component.Initialize(context);
     m_timer.Start();
     m_semStop.WaitOne();
 }
Пример #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");
            }
        }