Ignore:
Timestamp:
Aug 24, 2010, 6:57:49 PM (11 years ago)
Author:
kopal
Message:

Schedulers amount is now configurable by Settings

File:
1 edited

Legend:

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

    r1846 r1866  
    7272        /// </summary>
    7373        /// <param name="workspaceModel"></param>
    74         public void Execute(WorkspaceModel workspaceModel)
     74        public void Execute(WorkspaceModel workspaceModel, int amountSchedulers)
    7575        {
    7676            if (!IsRunning)
     
    7878                IsRunning = true;
    7979                this.workspaceModel = workspaceModel;
    80                 int amountSchedulers = System.Environment.ProcessorCount * 2;
     80
     81                if (amountSchedulers <= 0)
     82                {
     83                    amountSchedulers = 1;
     84                }
    8185
    8286                //Here we create n = "ProcessorsCount * 2" Gears4Net schedulers
Note: See TracChangeset for help on using the changeset viewer.