private void StartWorkers() { DateTime now = DateTime.Now; foreach (TaskExecutionWorker current in _taskExecutionWorkers) { current._thread.Start(); } _startupCompleteEvent.WaitOne(); if ((_options & DispatcherOptions.UseProcessorAffinity) > DispatcherOptions.None) { Dispatcher.SetWorkerThreadAffinity(now); } _startupCompleteEvent.Close(); _startupCompleteEvent = null; foreach (TaskExecutionWorker current2 in _taskExecutionWorkers) { Dispatcher.AddThread(current2._thread); } }