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