/// <summary>Initializes the debug view.</summary>
 /// <param name="scheduler">The scheduler.</param>
 public QueuedTaskSchedulerDebugView(QueuedTaskScheduler scheduler)
 {
     if (scheduler == null)
     {
         throw new ArgumentNullException("scheduler");
     }
     _scheduler = scheduler;
 }
Exemple #2
0
 /// <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>();
 }
Exemple #3
0
 /// <summary>Initializes the debug view.</summary>
 /// <param name="scheduler">The scheduler.</param>
 public QueuedTaskSchedulerDebugView(QueuedTaskScheduler scheduler)
 {
     _scheduler = scheduler ?? throw new ArgumentNullException("scheduler");
 }