示例#1
0
        private void DoManyJobs(NoDedicatedThreadQueue jobQueue)
        {
            Action doNothing = () => { };

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