Пример #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="WorkItemDispatcher&lt;T&gt;" /> class.
 /// </summary>
 /// <param name="width">Number of IO threads to start in parallel.</param>
 /// <param name="processor">Delegate which is called in width threads to process work.</param>
 /// <param name="name">Instance Name of the Dispatcher.</param>
 /// <param name="work">Input blocking queue from which work is fetched for the worker threads.</param>
 public WorkItemDispatcher(int width, Action <T> processor, string name, BlockingQueue <T> work) : this(width, processor, name, work, WorkItemOptions.Default)
 {
 }
 public void Dispose()
 {
     this.mySearcher    = null;
     this.Current       = null;
     this.myResultQueue = null;
 }