Changeset 1876


Ignore:
Timestamp:
Aug 26, 2010, 1:28:04 PM (11 years ago)
Author:
kopal
Message:

some ExecutionEngine optimizations

Location:
trunk/CrypPlugins/WorkspaceManager
Files:
2 edited

Legend:

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

    r1866 r1876  
    365365            while (this.executionEngine.IsRunning)
    366366            {
    367                 yield return Receive<MessageExecution>(null, HandleExecute);
    368             }
    369         }
    370 
     367                yield return Receive<MessageExecution>(this.Filter, HandleExecute);
     368            }
     369        }
     370
     371        /// <summary>
     372        /// Filter that checks wether the Plugin fits to the internal Plugin reference of this PluginProtocl
     373        /// </summary>
     374        /// <param name="msg"></param>
     375        /// <returns></returns>
     376        private bool Filter(MessageExecution msg)
     377        {
     378            if (msg.PluginModel != this.PluginModel)
     379            {
     380                return false;
     381            }
     382            return true;
     383        }
    371384        /// <summary>
    372385        /// Handle an execution of a plugin
  • trunk/CrypPlugins/WorkspaceManager/Model/ConnectorModel.cs

    r1844 r1876  
    244244                    MessageExecution msg = new MessageExecution();
    245245                    msg.PluginModel = connectionModel.To.PluginModel;
    246                     connectionModel.To.PluginModel.PluginProtocol.BroadcastMessage(msg);
     246                    connectionModel.To.PluginModel.PluginProtocol.BroadcastMessageReliably(msg);
    247247                }
    248248            }
Note: See TracChangeset for help on using the changeset viewer.