コード例 #1
0
ファイル: GExecutor.cs プロジェクト: bluetsys/alchemi
        /// <summary>
        /// Executes the given thread
        /// </summary>
        /// <param name="ti">ThreadIdentifier representing the GridThread to be executed on this node.</param>
        public void Manager_ExecuteThread(ThreadIdentifier ti)
        {
            lock (_ActiveWorkers)
            {
                ExecutorWorker worker = null;
                if (_ActiveWorkers.ContainsKey(ti))
                {
                    //stop any existing instances of the user's thread
                    worker = _ActiveWorkers[ti];
                    worker.Stop();
                }

                worker             = new ExecutorWorker(this, ti);
                _ActiveWorkers[ti] = worker;
                worker.Start();
            }
        }
コード例 #2
0
ファイル: GExecutor.cs プロジェクト: JamesTryand/alchemi
        /// <summary>
        /// Executes the given thread
        /// </summary>
        /// <param name="ti">ThreadIdentifier representing the GridThread to be executed on this node.</param>
        public void Manager_ExecuteThread(ThreadIdentifier ti)
        {
            lock (_ActiveWorkers)
            {
                ExecutorWorker worker = null;
                if (_ActiveWorkers.ContainsKey(ti))
                {
                    //stop any existing instances of the user's thread
                    worker = _ActiveWorkers[ti];
                    worker.Stop();
                }

                worker = new ExecutorWorker(this, ti);
                _ActiveWorkers[ti] = worker;
                worker.Start();
            }
        }