Beispiel #1
0
 /// <summary>
 /// Signal that this Consumer should stop when it has finished consuming at the next clean break.
 /// It will call <see cref="IConsumerBarrier{T}.Alert"/> to notify the thread to check status.
 /// </summary>
 public void Halt()
 {
     _running.Data = false;
     _consumerBarrier.Alert();
 }