public void Append(IProcessCollection collection) { while (collection.Count > 0) { Add(collection.Next); } }
/// <inheritdoc /> public void Start(String name, int itemsPerThread = -1, bool shared = false) { _shared = shared; ItemsPerThread = itemsPerThread; _name = name; _toProcess = new QueueCollection(); ProcessThread = new Thread(eventThreadMethod) { Name = name }; ProcessThread.Start(); _threads.Add(ProcessThread); _threadTasks.Add(ProcessThread.Name, "Startup"); Util.Wait(500, !_cont, _startLock); }
protected ProcessManager() { _processes = new IProcessCollection(); }
public IProcessEnumerator(IProcessCollection mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); }
public void Append(IProcessCollection collection) { while (collection.Count > 0) Add(collection.Next); }
/// <inheritdoc /> public void Start(String name, int itemsPerThread = -1, bool shared = false) { _shared = shared; ItemsPerThread = itemsPerThread; _name = name; _toProcess = new QueueCollection(); ProcessThread = new Thread(eventThreadMethod) {Name = name}; ProcessThread.Start(); _threads.Add(ProcessThread); _threadTasks.Add(ProcessThread.Name, "Startup"); Util.Wait(500, !_cont, _startLock); }