private void DoManyJobs(RxQueue jobQueue) { Action doNothing = () => { }; for (int i = 0; i < _jobSize - 1; i++) { jobQueue.Enqueue(doNothing); } jobQueue.Enqueue(() => _autoResetEvent.Set()); _autoResetEvent.WaitOne(); }
public void SetupRx() => _rxQueue = new RxQueue();