public ThreadProcessor ( ConcurrentAsyncQueue <T> queue , EventWaitHandle wait ) { Wait = wait; Sender = queue; }
public ThreadProcessor ( ConcurrentAsyncQueue <T> queue , EventWaitHandle wait ) { Break = false; Waiter = wait; Sender = queue; QueuePerformanceCountersContainer qpcc = Sender .PerformanceCountersContainer; _timerCounters = new WriteableTuple < bool , Stopwatch , PerformanceCounter , PerformanceCounter >[] { WriteableTuple .Create < bool , Stopwatch , PerformanceCounter , PerformanceCounter > ( false , null , qpcc .QueuedWaitAverageTimerPerformanceCounter , qpcc .QueuedWaitAverageBasePerformanceCounter ) , WriteableTuple .Create < bool , Stopwatch , PerformanceCounter , PerformanceCounter > ( true , null , qpcc .DequeueProcessedAverageTimerPerformanceCounter , qpcc .DequeueProcessedAverageBasePerformanceCounter ) }; }