/// <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(); } }