/// <summary>Initializes the queue.</summary> /// <param name="priority">The priority associated with this queue.</param> /// <param name="pool">The scheduler with which this queue is associated.</param> internal QueuedTaskSchedulerQueue(int priority, QueuedTaskScheduler pool) { _priority = priority; _pool = pool; _workItems = new Queue <Task>(); }
/// <summary>Initializes the debug view.</summary> /// <param name="scheduler">The scheduler.</param> public QueuedTaskSchedulerDebugView(QueuedTaskScheduler scheduler) { _scheduler = scheduler ?? throw new ArgumentNullException("scheduler"); }