Ignore:
Timestamp:
Jun 13, 2010, 7:54:08 PM (11 years ago)
Author:
kopal
Message:

Added

  • UpdateGuiInterval (interval for updating the gui elements during execution)
  • CheckInterval (interval for checking plugins being executable)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Execution/ExecutionEngine.cs

    r1620 r1627  
    4242        private Scheduler[] schedulers;
    4343        private WorkspaceModel workspaceModel;
    44      
     44
     45        public long CheckInterval { get; set; }
     46        public long GuiUpdateInterval { get; set; }
     47
    4548        /// <summary>
    4649        /// Creates a new ExecutionEngine
     
    179182    {
    180183        private WorkspaceModel workspaceModel;
    181         private ExecutionEngine executionEngine;
     184        private ExecutionEngine executionEngine;     
    182185
    183186        /// <summary>
     
    190193        {
    191194            this.workspaceModel = workspaceModel;
    192             this.executionEngine = executionEngine;
     195            this.executionEngine = executionEngine;           
    193196        }
    194197
     
    202205            while (this.executionEngine.IsRunning)
    203206            {
    204                 yield return Timeout(1000, HandleUpdateGui);
     207                yield return Timeout(this.executionEngine.GuiUpdateInterval, HandleUpdateGui);
    205208            }
    206209        }
     
    251254        private WorkspaceModel workspaceModel;
    252255        private ExecutionEngine executionEngine;
    253 
     256     
    254257        /// <summary>
    255258        /// Create a new protocol. Each protocol requires a scheduler which provides
     
    273276            while (this.executionEngine.IsRunning)
    274277            {
    275                 yield return Timeout(1, HandleCheckExecutable);
     278                yield return Timeout(this.executionEngine.CheckInterval, HandleCheckExecutable);
    276279            }
    277280        }
     
    289292            }
    290293        }
     294       
    291295    }
    292296
Note: See TracChangeset for help on using the changeset viewer.