コード例 #1
0
 public void Append(IProcessCollection collection)
 {
     while (collection.Count > 0)
     {
         Add(collection.Next);
     }
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 protected ProcessManager()
 {
     _processes = new IProcessCollection();
 }
コード例 #4
0
		public IProcessEnumerator(IProcessCollection mappings) 
		{
			this.temp = ((IEnumerable)(mappings));
			this.baseEnumerator = temp.GetEnumerator();
		}
コード例 #5
0
 public void Append(IProcessCollection collection)
 {
     while (collection.Count > 0)
         Add(collection.Next);
 }
コード例 #6
0
        /// <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);
        }